mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 22:25:27 +00:00
Provide gender parameter
Bug: T194868 Change-Id: I20fb6aee13c6bf7bc66bf3cae9560548a336e04d
This commit is contained in:
parent
64134bd8a6
commit
52e8e93020
|
@ -1303,7 +1303,8 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
|||
$blockInfo = [
|
||||
'creator' => [
|
||||
'name' => $blockCreator->getName(),
|
||||
'url' => $blockCreator->getUserPage()->getLinkURL()
|
||||
'url' => $blockCreator->getUserPage()->getLinkURL(),
|
||||
'gender' => $blockCreator->getOption( 'gender' ),
|
||||
],
|
||||
'expiry' => $blockExpiry,
|
||||
'duration' => $blockDuration,
|
||||
|
|
|
@ -35,7 +35,10 @@
|
|||
} ).options,
|
||||
title: mw.msg( 'skin-minerva-blocked-drawer-title' ),
|
||||
reasonHeader: mw.msg( 'skin-minerva-blocked-drawer-reason-header' ),
|
||||
creatorHeader: mw.msg( 'skin-minerva-blocked-drawer-creator-header' ),
|
||||
creatorHeader: function () {
|
||||
return mw.msg( 'skin-minerva-blocked-drawer-creator-header',
|
||||
this.creator.gender || 'unknown' );
|
||||
},
|
||||
expiryHeader: mw.msg( 'skin-minerva-blocked-drawer-expiry-header' )
|
||||
} ),
|
||||
templatePartials: util.extend( {}, Drawer.prototype.templatePartials, {
|
||||
|
|
Loading…
Reference in a new issue