mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-23 22:03:39 +00:00
User menu overflow: add change block and unblock
Added the "Change block" and "Unblock user" to the array of possible menu entries for the overflow menu. These buttons will only appear when a user is already blocked. Bug: T308570 Change-Id: I987083cfeb20a0c691d3fc631a9c844647fec9bf Depends-On: If60a1194d63fff2b7b5ae1565be25a3b7b44fdf1
This commit is contained in:
parent
2b5b97a9ce
commit
207705fced
|
@ -48,10 +48,12 @@
|
|||
"minerva-page-actions-info": "Page information",
|
||||
"minerva-page-actions-permalink": "Permanent link",
|
||||
"minerva-page-actions-backlinks": "What links here",
|
||||
"minerva-page-actions-change-block": "Change block",
|
||||
"minerva-page-actions-cite": "Cite page",
|
||||
"minerva-page-actions-move": "Move",
|
||||
"minerva-page-actions-delete": "Delete",
|
||||
"minerva-page-actions-protect": "Protect",
|
||||
"minerva-page-actions-unblock": "Unblock user",
|
||||
"minerva-page-actions-unprotect": "Unprotect",
|
||||
"minerva-page-actions-user-groups": "User groups",
|
||||
"minerva-page-actions-block": "Block user",
|
||||
|
|
|
@ -62,10 +62,12 @@
|
|||
"minerva-page-actions-info": "In the secondary page menu, the page information button label",
|
||||
"minerva-page-actions-permalink": "In the secondary page menu, the permanent link button label\n\nSee also:\n* {{msg-mw|permalink}}",
|
||||
"minerva-page-actions-backlinks": "In the secondary page menu, the 'what links here' incoming links button label\n\nSee also:\n* {{msg-mw|whatlinkshere}}",
|
||||
"minerva-page-actions-change-block": "In the secondary page menu, the change block button label",
|
||||
"minerva-page-actions-cite": "In the secondary page menu, the cite this page button label\n\nSee also:\n* {{msg-mw|citethispage-link}}",
|
||||
"minerva-page-actions-move": "In the secondary page menu, the move this page button label\n\nSee also:\n* {{msg-mw|move}}\n{{identical|Move}}",
|
||||
"minerva-page-actions-delete": "In the secondary page menu, the delete this page button label\n\nSee also:\n* {{msg-mw|delete}}\n{{identical|Delete}}",
|
||||
"minerva-page-actions-protect": "In the secondary page menu, the protect this page button label\n\nSee also:\n* {{msg-mw|protect}}",
|
||||
"minerva-page-actions-unblock": "In the secondary page menu, the unblock button label",
|
||||
"minerva-page-actions-unprotect": "In the secondary page menu, the unprotect this page button label\n\nSee also:\n* {{msg-mw|unprotect}}",
|
||||
"minerva-page-actions-user-groups": "In the secondary page menu for user pages, the user groups button label",
|
||||
"minerva-page-actions-block": "In the secondary page menu for user pages, the block button label",
|
||||
|
|
|
@ -96,6 +96,8 @@ class UserNamespaceOverflowBuilder implements IOverflowBuilder {
|
|||
$possibleEntries = array_filter( [
|
||||
$this->buildFromToolbox( 'user-groups', 'userGroup', 'userrights', $toolbox ),
|
||||
$this->buildFromToolbox( 'block', 'block', 'blockip', $toolbox ),
|
||||
$this->buildFromToolbox( 'change-block', 'block', 'changeblockip', $toolbox ),
|
||||
$this->buildFromToolbox( 'unblock', 'unBlock', 'unblockip', $toolbox ),
|
||||
$this->buildFromToolbox( 'logs', 'listBullet', 'log', $toolbox ),
|
||||
$this->buildFromToolbox( 'info', 'infoFilled', 'info', $toolbox ),
|
||||
$this->buildFromToolbox( 'permalink', 'link', 'permalink', $toolbox ),
|
||||
|
@ -111,6 +113,7 @@ class UserNamespaceOverflowBuilder implements IOverflowBuilder {
|
|||
foreach ( $possibleEntries as $menuEntry ) {
|
||||
$group->insertEntry( $menuEntry );
|
||||
}
|
||||
|
||||
return $group;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue