mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-23 23:44:53 +00:00
Merge "(bug 43441) Show preferences icon on Special:Notifications without label except as title"
This commit is contained in:
commit
a5dbc1e000
Binary file not shown.
Before Width: | Height: | Size: 108 B |
Binary file not shown.
Before Width: | Height: | Size: 108 B |
BIN
modules/special/Feedback.png
Normal file
BIN
modules/special/Feedback.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 435 B |
BIN
modules/special/FeedbackHover.png
Normal file
BIN
modules/special/FeedbackHover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 424 B |
BIN
modules/special/Preferences.png
Normal file
BIN
modules/special/Preferences.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 509 B |
BIN
modules/special/PreferencesHover.png
Normal file
BIN
modules/special/PreferencesHover.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 498 B |
|
@ -21,16 +21,19 @@ h1#firstHeading {
|
|||
}
|
||||
|
||||
#mw-echo-pref-link {
|
||||
line-height: 1.2em;
|
||||
font-size: 0.5em;
|
||||
margin: 0 15px;
|
||||
min-height: 14px;
|
||||
padding-left: 18px;
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
vertical-align: middle;
|
||||
/* @embed */
|
||||
background-image: url(../icons/Settings.png);
|
||||
background-image: url(Preferences.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: 0 0;
|
||||
}
|
||||
#mw-echo-pref-link:hover {
|
||||
/* @embed */
|
||||
background-image: url(PreferencesHover.png);
|
||||
}
|
||||
|
||||
.mw-echo-date-section {
|
||||
font-weight: 800;
|
||||
|
|
|
@ -34,15 +34,11 @@ class SpecialNotifications extends SpecialPage {
|
|||
}
|
||||
|
||||
// Preferences link
|
||||
$preferenceLink = Html::element(
|
||||
'a',
|
||||
array(
|
||||
'href' => SpecialPage::getTitleFor( 'Preferences' )->getLinkURL() . '#mw-prefsection-echo'
|
||||
),
|
||||
wfMessage( 'preferences' )->text()
|
||||
);
|
||||
|
||||
$html = Html::rawElement( 'div', array( 'id' => 'mw-echo-pref-link' ), $preferenceLink );
|
||||
$html = Html::rawElement( 'a', array(
|
||||
'href' => SpecialPage::getTitleFor( 'Preferences' )->getLinkURL() . '#mw-prefsection-echo',
|
||||
'id' => 'mw-echo-pref-link',
|
||||
'title' => wfMessage( 'preferences' )->text()
|
||||
) );
|
||||
|
||||
$notif = ApiEchoNotifications::getNotifications( $user, false, 'html', self::$displayNum + 1, $timestamp, $offset );
|
||||
|
||||
|
|
Loading…
Reference in a new issue