mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-02 03:07:13 +00:00
97de09dcba
- getTocData is moved into VectorComponentTableOfContents and it's test file The following changes were made to the main menu, toc and page tools PHP components - Avoid passing in $skin to the constructor - Handle isPinned logic inside the component - Add a public ID constant to the components - Dropdown data for each feature use the same naming convention Bug: T317900 Change-Id: I77a617a6c1d93bccd3b6e59353299f5534624e53
23 lines
752 B
Plaintext
23 lines
752 B
Plaintext
<nav class="vector-user-links{{#is-wide}} vector-user-links-wide{{/is-wide}}" aria-label="{{msg-personaltools}}" role="navigation" >
|
|
{{#data-user-menu-overflow}}{{>Menu}}{{/data-user-menu-overflow}}
|
|
{{#data-user-menu-dropdown}}
|
|
{{>Dropdown/Open}}
|
|
{{#is-anon}}
|
|
{{#is-temp-user}}
|
|
{{>UserLinks__templogin}}
|
|
{{/is-temp-user}}
|
|
{{^is-temp-user}}
|
|
{{>UserLinks__login}}
|
|
{{/is-temp-user}}
|
|
{{/is-anon}}
|
|
<ul class="vector-menu-content-list">{{{html-items}}}</ul>
|
|
{{^is-anon}}
|
|
{{!-- The #pt-logout ID is required for the AJAX enabled logout in mediawiki.page.ready to work.}}
|
|
<div id="pt-logout" class="vector-user-menu-logout">
|
|
{{{html-logout-link}}}
|
|
</div>
|
|
{{/is-anon}}
|
|
{{>Dropdown/Close}}
|
|
{{/data-user-menu-dropdown}}
|
|
</nav>
|