mediawiki-skins-Citizen/templates/Drawer.mustache
alistair3149 03da361b97
feat(components): rewrite template data partials into CitizenComponent components (#846)
- Refactor existing template data-related partials into CitizenComponent components
- Re-implement user menu header as UserInfo
- Add description text for anon and temp user in UserMenu
---------

Co-authored-by: github-actions <github-actions@users.noreply.github.com>
2024-05-15 01:24:43 -04:00

27 lines
900 B
Plaintext

{{!
string msg-citizen-drawer-toggle The label used by the drawer button.
string msg-sitetitle the contents of the sitesubtitle message key
}}
<div class="citizen-drawer citizen-header__item citizen-menu-checkbox-container">
<input
type="checkbox"
id="citizen-drawer__checkbox"
class="citizen-menu-checkbox-checkbox"
role="button"
aria-labelledby="citizen-drawer__buttonCheckbox"
aria-haspopup="true">
{{>Drawer__button}}
{{! ID needed for a11y and checkbox hack }}
<aside id="citizen-drawer__card" class="citizen-drawer__card citizen-menu-checkbox-target">
<header class="citizen-drawer__header">
{{>Drawer__logo}}
<div class="citizen-drawer__siteinfo">
{{#data-site-stats}}{{>SiteStats}}{{/data-site-stats}}
<div class="mw-logo-wordmark">{{msg-sitetitle}}</div>
</div>
</header>
{{#data-main-menu}}
{{>MainMenu}}
{{/data-main-menu}}
</aside>
</div>