mediawiki-skins-Vector/includes/templates/PinnableHeader.mustache
bwang 2ac38f2f9a Add generic PinnableHeader template, CSS & JS
Bug: T317897
Change-Id: Iedc5e6f64e72a4d7762cb4f2fa834980d6757793
2022-11-01 11:12:15 -05:00

13 lines
798 B
Plaintext

<div
{{#id}}id="{{.}}"{{/id}}
class="vector-pinnable-header vector-pinnable-header-{{#is-pinned}}pinned{{/is-pinned}}{{^is-pinned}}unpinned{{/is-pinned}}{{#class}} {{.}}{{/class}}"
{{#data-name}}data-name={{.}}{{/data-name}}
{{#data-pinnable-element-id}}data-pinnable-element-id={{.}}{{/data-pinnable-element-id}}
{{#data-pinned-container-id}}data-pinned-container-id={{.}}{{/data-pinned-container-id}}
{{#data-unpinned-container-id}}data-unpinned-container-id={{.}}{{/data-unpinned-container-id}}
>
<div class="vector-pinnable-header-label">{{label}}</div>
<button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button">{{pin-label}}</button>
<button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button">{{unpin-label}}</button>
</div>