mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-03 18:26:16 +00:00
82724b3c44
While dropping support of smart logout in favour of core ready.js logout, we noticed that the logout selector is a little bit too weak. Editors could make a link on a page that would work as a logout button. The easiest way to prevent this (and any other possible problems) is to add `data-mw="interface"` attribute to all generated menu entries. Change-Id: I22611b9641d82328623beb3f693bf7cddb2289ff
18 lines
548 B
Plaintext
18 lines
548 B
Plaintext
{{!
|
|
array components
|
|
string|null components.class Optional anchor CSS class.
|
|
string|null components.href Optional URI.
|
|
string|null components.text Optional text.
|
|
string|null components.data-event-name Optional tracking code.
|
|
}}
|
|
{{#components}}
|
|
<li class="toggle-list-item">
|
|
<a class="toggle-list-item__anchor {{class}}" href="{{href}}"
|
|
data-event-name="{{data-event-name}}" data-mw="interface">
|
|
<span class="toggle-list-item__icon">
|
|
<span class="toggle-list-item__label">{{text}}</span>
|
|
</span>
|
|
</a>
|
|
</li>
|
|
{{/components}}
|