mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-28 08:00:32 +00:00
2b41416c0d
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
56 lines
1.6 KiB
Plaintext
56 lines
1.6 KiB
Plaintext
<div id="mw-mf-viewport">
|
|
<div id="mw-mf-page-center">
|
|
<a class="mw-mf-page-center__mask" href="#"></a>
|
|
{{>Header}}
|
|
<main id="content" class="mw-body">
|
|
<div class="banner-container">
|
|
{{>banners}}
|
|
</div>
|
|
{{{html-user-message}}}
|
|
{{^is-title-blank}}
|
|
<div class="pre-content heading-holder">
|
|
<div class="page-heading">
|
|
{{{html-title-heading}}}
|
|
{{{html-minerva-tagline}}}
|
|
</div>
|
|
{{#data-minerva-tabs}}
|
|
<ul {{#id}}id="{{.}}"{{/id}} class="minerva__tab-container">
|
|
{{#items}}
|
|
<li class="minerva__tab {{class}}">
|
|
<a href="{{href}}" rel="{{rel}}" data-event-name="tabs.{{context}}">{{text}}</a>
|
|
</li>
|
|
{{/items}}
|
|
</ul>
|
|
{{/data-minerva-tabs}}
|
|
{{#data-minerva-page-actions}}
|
|
{{>PageActionsMenu}}
|
|
{{/data-minerva-page-actions}}
|
|
{{{html-subtitle}}}
|
|
</div>
|
|
{{/is-title-blank}}
|
|
<div id="bodyContent" class="content">
|
|
{{{html-body-content}}}
|
|
{{! This shows "Return to page" on talk page when talk tab not shown at top.
|
|
To see set wgMinervaTalkAtTop to false and visit a talk page}}
|
|
{{{html-minerva-subject-link}}}
|
|
</div>
|
|
<div class="post-content" id="page-secondary-actions">
|
|
{{#data-minerva-secondary-actions}}
|
|
{{#talk}}
|
|
{{>Button}}
|
|
{{/talk}}
|
|
{{#language}}
|
|
{{>Button}}
|
|
{{/language}}
|
|
{{/data-minerva-secondary-actions}}
|
|
</div>
|
|
{{#html-categories}}
|
|
<div class="post-content">{{{.}}}</div>
|
|
{{/html-categories}}
|
|
</main>
|
|
{{>footer}}
|
|
</div>
|
|
</div>
|
|
<div class="mw-notification-area" data-mw="interface"></div>
|
|
<!-- v:8.3.1 -->
|