mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-05 14:22:56 +00:00
cdd5ebd74d
CHANGES to index.mustache: Changes can be understood by looking at the diff of the file stories/skin.stories.js The additional changes in stories folder export the data passed to those templates. A new file is used as exporting any variable in a file suffixed stories.js will be assumed to be a story entry. The changes to index.mustache are as follows: * html-footer is replaced with data-footer and Footer component is rendered via template partial * html-navigation is replaced with data-navigation and Navigation component is rendered via template partial CHANGES to Navigation.mustache: Changes are best explained by looking at the diff to stories/navigation.stories.js and navigation.stories.data.js * html-personal-menu is replaced with data-personal-menu Bug: T245456 Change-Id: Ie96e92447a932b8a7f3844df277a1d31a2af423c
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
{{!
|
|
string html-navigation-heading heading for entire navigation that is
|
|
usually hidden to screen readers
|
|
string html-personal-menu content that appears as the first child of mw-head
|
|
string html-navigation-left-tabs that appears inside #left-navigation (namespaces and variants)
|
|
string html-navigation-right-tabs that appears inside #right-navigation (page actions and search)
|
|
string html-sidebar sidebar HTML
|
|
}}
|
|
<div id="mw-navigation">
|
|
<h2>{{{html-navigation-heading}}}</h2>
|
|
<div id="mw-head">
|
|
{{#data-personal-menu}}
|
|
{{>PersonalMenu}}
|
|
{{/data-personal-menu}}
|
|
<div id="left-navigation">
|
|
{{#data-namespace-tabs}}
|
|
{{>VectorTabs}}
|
|
{{/data-namespace-tabs}}
|
|
{{#data-variants}}
|
|
{{>VectorMenu}}
|
|
{{/data-variants}}
|
|
</div>
|
|
<div id="right-navigation">
|
|
{{#data-page-actions}}
|
|
{{>VectorTabs}}
|
|
{{/data-page-actions}}
|
|
{{#data-page-actions-more}}
|
|
{{>VectorMenu}}
|
|
{{/data-page-actions-more}}
|
|
{{#data-search-box}}
|
|
{{>SearchBox}}
|
|
{{/data-search-box}}
|
|
</div>
|
|
</div>
|
|
{{#data-sidebar}}
|
|
{{>Sidebar}}
|
|
{{/data-sidebar}}
|
|
</div>
|