MinervaNeue/includes/skins
Piotr Miazga 82a2edf585 Untangle watchstar icon
The SkinMinerva::createWatchPageAction() was depending upon
$tpl['content_navigation']['actions'] object, which is created by
SkinTemplate::buildContentNavigationUrls(). Although only 'watch'
and 'unwatch' keys were used, moreover, code was using only 'href'
property from both 'watch' and 'unwatch'. All other props are
overrided, not used when rendering. Also the title of unwatch
icon was set to "watch this page" which was incorrect.

This system was bit complex to manage (we should provide dependencies
not pass the whole 'content_navigation']['actions'] array). It would
also make further refactoring more difficult, as watchstar icon
shouldn't depened on quicktemplate stuff. We were using only href
attribute which is super easy to calculate.

Changes:
 - do not depend upon $actions, get href by using $title->getLocalUrl
 - set proper title for unwatch icon
 - simplified SkinMinerva::createWatchPageAction() logic

Bug: T221792
Change-Id: I9609949b60a7e2f2f0a947c05c80c89be32d4cb1
2019-05-29 17:37:40 +02:00
..
banners.mustache Minerva is its own skin 2017-07-12 08:12:40 -07:00
footer.mustache Hygiene: remove outdated comment in footer.mustache 2019-04-04 17:43:35 +00:00
history.mustache Hygiene: Refactor Minerva history link generation 2017-11-27 14:27:11 -08:00
minerva.mustache Merge "Banner now nested inside main article at top" 2019-02-20 20:01:25 +00:00
MinervaTemplate.php Merge "Hygiene: Various cleanup in Minerva PHP code" 2019-04-20 00:50:19 +00:00
pageActionMenu.mustache Update: add secondary page actions submenu in AMC mode 2019-04-19 14:51:17 +00:00
secondaryButton.mustache Notification icon should not show NaN for persian Wikipedia 2017-10-26 20:27:12 +00:00
SkinMinerva.php Untangle watchstar icon 2019-05-29 17:37:40 +02:00
SkinUserPageHelper.php Simplify SkinUserPageHelper constructor 2018-04-15 16:38:50 -07:00
user_page_links.mustache Prefix icons in Minerva 2018-01-19 15:30:03 -08:00