mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 23:55:53 +00:00
298f945983
- Adds mustache template for the new user menu - Uses new functions for getting user link data that have been factored out of SkinTemplate in the dependent patch - Refactor new user menu styles to be namespaced inside UserMenu.less Notes: - Originally this patch included more storybook changes, but I removed them in favor of this follow up patch: 696651 Bug: T276564 Depends-On: Ia841f92c626ca32a9ad437b3d1cff78309c83ed8 Change-Id: Ib15752428265fdc06a3000f62bdca44c67648974
29 lines
986 B
Plaintext
29 lines
986 B
Plaintext
{{!
|
|
See @typedef UserMenuDefinition
|
|
UserMenu is a copy of Menu and needs to be kept in sync
|
|
}}
|
|
{{! `role` is unnecessary but kept to support selectors in any gadgets or user styles. }}
|
|
<nav id="{{id}}" {{#class}}class="{{.}}"{{/class}} aria-labelledby="{{id}}-label" role="navigation" {{{html-tooltip}}}
|
|
{{{html-user-language-attributes}}}>
|
|
<input type="checkbox" class="vector-menu-checkbox" aria-labelledby="{{id}}-label" />
|
|
<h3 id="{{id}}-label" {{#heading-class}}class="{{.}}"{{/heading-class}}>
|
|
<span>{{label}}</span>
|
|
</h3>
|
|
<div class="vector-menu-content">
|
|
{{#is-anon}}
|
|
{{#data-userlinks}}
|
|
<div class="vector-user-menu-login">{{{html-login}}}</div>
|
|
<div class="vector-user-menu-anon-editor">
|
|
<p>
|
|
{{msg-vector-anon-user-menu-pages}} {{{html-vector-anon-user-menu-pages-learn}}}:
|
|
</p>
|
|
</div>
|
|
{{/data-userlinks}}
|
|
{{/is-anon}}
|
|
<ul class="vector-menu-content-list">
|
|
{{{html-items}}}
|
|
</ul>
|
|
{{{html-after-portal}}}
|
|
</div>
|
|
</nav>
|