mediawiki-skins-Vector/includes/templates/UserLinks.mustache
bwang 34344adbf5 Remove UserMenu and use Menu template instead
- Adds html-before-portlet to Menu.mustache
- Removes UserMenu.mustache and type def
- Factors out getCreateAccountHTML and getLoginHTML for generating HTML used in Menu
- Scopes UserLink template data under "data-vector-user-links"

Follow up to: 298f945983
Bug: T284584
Change-Id: I91104eb7c4fd12756e770561666f4c9a64da57d6
2021-06-11 09:41:58 -05:00

14 lines
442 B
Plaintext

<div class="vector-user-links">
{{#data-user-interface-preferences}}{{>Menu}}{{/data-user-interface-preferences}}
{{#is-anon}}
<div id="p-createaccount" class="vector-user-links-createaccount">
{{{html-create-account}}}
</div>
{{/is-anon}}
{{^is-anon}}
{{#data-notifications}}{{>Menu}}{{/data-notifications}}
{{#data-user-page}}{{>Menu}}{{/data-user-page}}
{{/is-anon}}
{{#data-user-menu}}{{>Menu}}{{/data-user-menu}}
</div>