mediawiki-skins-MinervaNeue/includes
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
..
Hooks Create HookRunner class and the hook handler interface 2023-06-09 22:19:59 +02:00
Menu Fix alignment for nearby and settings items in menu, and correctly hide when JS is disabled 2023-12-14 21:58:39 +00:00
Permissions watchlist: Don't assume only named users have watchlist access 2023-08-24 14:12:43 +00:00
Skins Allow addPortletLink to target tabs/associated pages 2023-12-21 16:37:28 -08:00
Hooks.php Swap conditions in onSpecialPageBeforeExecute 2023-12-06 20:18:52 +01:00
LanguagesHelper.php Replace some moved Title class uses, now MediaWiki\Title\Title 2023-08-19 19:36:46 +02:00
MobileFrontendHooks.php Use HookHandlers for MobileFrontend hooks 2023-08-15 17:02:31 +02:00
ResourceLoaderSkinModule.php Use new ResourceLoader namespaces 2022-05-27 16:40:01 +00:00
ServiceWiring.php Add "edit full page" to the minerva overflow menu 2023-07-21 20:00:15 -05:00
SkinOptions.php Remove talk page tools 2023-03-13 18:21:52 +00:00