Provide gender parameter

Bug: T194868
Change-Id: I20fb6aee13c6bf7bc66bf3cae9560548a336e04d
This commit is contained in:
Piotr Miazga 2018-05-29 19:20:36 +02:00
parent 64134bd8a6
commit 52e8e93020
2 changed files with 6 additions and 2 deletions

View file

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

View file

@ -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, {