mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-09-23 18:28:34 +00:00
Merge "Notification icon should be localized"
This commit is contained in:
commit
5eef330e30
|
@ -171,11 +171,12 @@ class SkinMinerva extends SkinMustache {
|
|||
*/
|
||||
private function getNotificationCircleButton( array $alert ) {
|
||||
$alertCount = $alert['data']['counter-num'] ?? 0;
|
||||
$alertText = $alert['data']['counter-text'] ?? $alertCount;
|
||||
$alert['html'] =
|
||||
Html::rawElement( 'div', [ 'class' => 'circle' ],
|
||||
Html::element( 'span', [
|
||||
'data-notification-count' => $alertCount,
|
||||
], $alertCount )
|
||||
], $alertText )
|
||||
);
|
||||
$alert['class'] = 'notification-count notification-unseen mw-echo-unseen-notifications';
|
||||
$alert['link-class'] = array_merge(
|
||||
|
|
Loading…
Reference in a new issue