mediawiki-skins-Vector/includes/templates/PageToolbar.mustache
bwang d150131561 Generalize Pinnable functionality to not be limited to dropdowns, make Pinnable templates composable
This patch involves cached HTML changes
- Replace '-content-container' id with '-unpinned-container'
- Replace '-content' id with '-pinnable-element'
- Rename pinnableHeader.js to pinnableElement.js
- Replace PinnableDropdownContents.mustache with PinnableElement/Open.mustache and Close
- Add PinnedContainer/Open & Close and UnpinnedContainer/Open & Close
- Rename .vector-dropdown-content to .vector-pinnable-element
- Add new PinnableElement.less stylesheet

Bug: T318013
Change-Id: I85aec387f87126a17e760fd9fd10e10572ff3152
2022-11-30 17:17:20 -06:00

29 lines
979 B
Plaintext

<div class="vector-page-toolbar">
<div class="vector-page-toolbar-container">
{{#data-portlets}}
<div id="left-navigation">
<nav aria-label="{{msg-namespaces}}">
{{#data-associated-pages}}{{>Tabs}}{{/data-associated-pages}}
{{#data-variants}}{{>VariantsDropdown}}{{/data-variants}}
</nav>
</div>
<div id="right-navigation" class="vector-collapsible">
<nav aria-label="{{msg-views}}">
{{#data-views}}{{>Tabs}}{{/data-views}}
</nav>
<nav class="vector-page-tools-landmark" aria-label="{{msg-tooltip-p-cactions}}">
{{#is-page-tools-enabled}}{{#data-page-tools}}
{{>Dropdown/Open}}
{{>UnpinnedContainer/Open}}
{{^is-pinned}}{{>PageTools}}{{/is-pinned}}
{{>UnpinnedContainer/Close}}
{{>Dropdown/Close}}
{{/data-page-tools}}{{/is-page-tools-enabled}}
{{^is-page-tools-enabled}}{{#data-actions}}{{>LegacyMoreMenu}}{{/data-actions}}{{/is-page-tools-enabled}}
</nav>
</div>
{{/data-portlets}}
</div>
</div>