mediawiki-skins-Vector/includes/templates/MainMenuAction.mustache
jaydenb d1c0e6cd6f Hide language alert if there are none and JS is disabled
The languages alert is misleading when there are no languages and the user has JS disabled.

This change adds a class to the alert if there are 0 languages, and then adds "display: none" to the alert if the client-nojs class is present. This is the same approach being used for the language switcher button.

Bug: T326185
Change-Id: Iee292d661ed1f47700f588053712f5f547022b17
2023-06-16 17:30:34 +00:00

10 lines
390 B
Plaintext

{{! `heading` is optional. }}
<div class="vector-main-menu-action vector-main-menu-action-{{action}}{{#class}} {{.}}{{/class}}">
<div class="vector-main-menu-action-item">
{{#heading}}<div class="vector-main-menu-action-heading vector-menu-heading">{{.}}</div>{{/heading}}
<div class="vector-main-menu-action-content vector-menu-content">
{{{html-content}}}
</div>
</div>
</div>