[UI] [AMC] add recent changes to the AMC menu

This mostly reverts commit 692309090d and
updates the icon.

Bug: T224216
Change-Id: I7200aaef5a15479afb4bc99f5195e900351a055a
This commit is contained in:
Stephen Niedzielski 2019-07-30 11:27:34 -06:00
parent ab6cbd9fef
commit 805cc92e73
5 changed files with 26 additions and 0 deletions

View File

@ -258,6 +258,23 @@ final class Definitions {
}
}
/**
* Build and insert the RecentChanges link
* @param Group $group
* @throws MWException
*/
public function insertRecentChanges( Group $group ) {
$title = SpecialPage::getTitleFor( 'Recentchanges' );
$group->insert( 'recentchanges' )
->addComponent(
$this->context->msg( 'recentchanges' )->escaped(),
$title->getLocalURL(),
MinervaUI::iconClass( 'recentchanges', 'before' ),
[ 'data-event-name' => 'recentchanges' ]
);
}
/**
* Build and insert the SpecialPages link
* @param Group $group

View File

@ -96,6 +96,7 @@ final class AdvancedBuilder implements IBuilder {
private function getSiteTools(): Group {
$group = new Group();
$this->definitions->insertRecentChanges( $group );
$this->definitions->insertSpecialPages( $group );
$this->definitions->insertCommunityPortal( $group );

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M6 15h2v2H6z"/><path fill-rule="nonzero" d="M6 9h6v2H6z"/><path fill-rule="nonzero" d="M6 3h11v2H6z"/><circle cx="2" cy="4" r="2" fill-rule="nonzero"/><circle cx="2" cy="10" r="2" fill-rule="nonzero"/><circle cx="2" cy="16" r="2" fill-rule="nonzero"/><path d="M18.76 11.89l1.078-1.112a.556.556 0 0 0 0-.783l-1.855-1.833a.556.556 0 0 0-.783 0l-1.09 1.077 2.65 2.65z"/><path d="M15.533 9.828L10 15.361V18h2.639l5.533-5.533z"/></g></svg>

After

Width:  |  Height:  |  Size: 569 B

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g fill-rule="evenodd"><path fill-rule="nonzero" d="M14 15h-2v2h2z"/><path fill-rule="nonzero" d="M14 9H8v2h6z"/><path fill-rule="nonzero" d="M14 3H3v2h11z"/><circle cx="18" cy="4" r="2" fill-rule="nonzero" transform="matrix(-1 0 0 1 36 0)"/><circle cx="18" cy="10" r="2" fill-rule="nonzero" transform="matrix(-1 0 0 1 36 0)"/><circle cx="18" cy="16" r="2" fill-rule="nonzero" transform="matrix(-1 0 0 1 36 0)"/><path d="M1.24 11.89L.162 10.777a.556.556 0 0 1 0-.783l1.856-1.833a.556.556 0 0 1 .783 0L3.89 9.239l-2.65 2.65z"/><path d="M4.467 9.828L10 15.361V18H7.361l-5.533-5.533z"/></g></svg>

After

Width:  |  Height:  |  Size: 676 B

View File

@ -416,6 +416,12 @@
"rtl": "resources/skins.minerva.mainMenu.icons/contributions-rtl.svg"
}
},
"recentchanges": {
"file": {
"ltr":"resources/skins.minerva.mainMenu.icons/recentChanges-ltr.svg",
"rtl": "resources/skins.minerva.mainMenu.icons/recentChanges-rtl.svg"
}
},
"specialpages": {
"file": {
"ltr":"resources/skins.minerva.mainMenu.icons/specialpages-ltr.svg",