mediawiki-skins-MinervaNeue/includes/Skins
Steph Toyofuku 2b41416c0d Allow addPortletLink to target tabs/associated pages
Currently `mw.util.addPortletLink` cannot properly add a portlet link to
the associated pages tabs, as there is no `p-associated-pages` id on
mobile.  This change pulls the id from the page data, and adds the
necessary class for the tab to be styled correctly - since tabs do not
have corresponding icons while most portlet links do, we also branch on
this class (effectively on whether we are in the tab container) to
ensure an icon is not inserted

Finally, I added a few comments and spacing in the sections of code that
I touched to make them more readable and resolve some of the linter
warnings, but happy to hear if these are not helpful!

Bug: T340728
Change-Id: I33fc12611a6238552a3eb47f6ca37f087903a92a
2023-12-21 16:37:28 -08:00
..
PageActionsMenu Support extension of page actions via hook and addPortletLink 2023-10-04 22:15:47 +00:00
ToggleList Udate jsdoc and use jsdoc-wmf-theme 2023-10-20 13:42:19 +00:00
banners.mustache Remove MinervaTemplate class 2021-11-12 11:39:58 -07:00
Button.mustache Clean up setIcon now that classes and icon types are removed 2023-08-24 21:37:40 +00:00
footer.mustache Add languages to Minerva HTML 2023-03-17 20:37:32 +00:00
footerItemList.mustache Simplify footer and logo generation 2020-10-16 23:41:34 +00:00
Header.mustache Echo uses Button template 2023-08-08 15:44:38 +00:00
history.mustache [Icons] Convert history/next status bar icons to Codex 2023-07-28 16:56:24 -07:00
Icon.mustache Switch Minerva button template to use Codex and remove mw-ui-button 2023-08-24 15:57:01 -05:00
IconButtonLink.mustache Generate section edit links via SkinMustache 2023-10-23 23:17:43 +00:00
LanguageSection.mustache Add languages to Minerva HTML 2023-03-17 20:37:32 +00:00
Logo.mustache Restore title to mobile skin without logo 2021-10-21 15:16:14 +00:00
menu.mustache Update addPortletLink for Codex 2023-08-29 19:27:56 +00:00
menuGroup.mustache Make menuGroup.mustache use togglelist classes, ensuring ToggleList HTML is consistent. Remove duplicated CSS 2023-08-25 17:57:47 +00:00
PageActionsMenu.mustache Move components files up one level into Skins directory 2021-10-22 18:45:38 +00:00
SearchBox.mustache Remove old :before icon selectors and update selectors to not use minerva and wikimedia prefixes 2023-09-06 13:53:22 -05:00
SectionLinks.mustache Generate section edit links via SkinMustache 2023-10-23 23:17:43 +00:00
skin.mustache Allow addPortletLink to target tabs/associated pages 2023-12-21 16:37:28 -08:00
SkinMinerva.php Allow addPortletLink to target tabs/associated pages 2023-12-21 16:37:28 -08:00
SkinUserPageHelper.php build: Remove unneeded newline from one line condition 2023-08-22 21:46:03 +02:00
ToggleList.mustache Move components files up one level into Skins directory 2021-10-22 18:45:38 +00:00