Merge "(bug 43441) Show preferences icon on Special:Notifications without label except as title"

This commit is contained in:
Kaldari 2013-01-02 05:49:36 +00:00 committed by Gerrit Code Review
commit a5dbc1e000
8 changed files with 13 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 509 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

View file

@ -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;

View file

@ -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 );