]> git.proxmox.com Git - pve-eslint.git/blame - eslint/docs/src/_includes/components/nav-version-switcher.html
import 8.41.0 source
[pve-eslint.git] / eslint / docs / src / _includes / components / nav-version-switcher.html
CommitLineData
8f9d1d4d
DC
1<!-- only displayed in mobile; be sure to update version-switcher.html too -->
2<div class="version-switcher">
3 <a href="{{ '/versions/' | url }}" class="switcher-fallback">Versions</a>
4
5 <div hidden role="region" class="switcher switcher--version" aria-labelledby="nav-version-switcher-label" id="nav-version-switcher">
6 <span id="nav-version-switcher-label" hidden>Version Switcher</span>
7 <div class="infobox visually-hidden" id="nav-version-infobox">
8 Selecting a version will take you to the chosen version of the ESLint docs.
9 </div>
10
11 <label class="switcher__label label--block" for="version-select">
12 <span class="label__text">Version</span>
13 </label>
14 <select name="version selector" id="nav-version-select" aria-describedby="nav-version-infobox" class="c-custom-select switcher__select auto-switcher">
f2a92ac6
DC
15 <option value="HEAD" data-url="/docs/head/" {% if HEAD %}selected{% endif %}>HEAD</option>
16 {% if config.showNextVersion == true %}
17 <option value="NEXT" data-url="/docs/next/" {% if GIT_BRANCH == "next" %}selected{% endif %}>NEXT</option>
18 {% endif %}
19 <option value="{{ eslintVersion }}" data-url="/docs/latest/" {% if GIT_BRANCH == "latest" %}selected{% endif %}>v{{ eslintVersion }}</option>
8f9d1d4d
DC
20 {% for version in versions.items %}
21 <option value="{{ version.number }}"
22 data-url="{{ version.url }}">
23 v{{ version.number }}
24 </option>
25 {% endfor %}
26 </select>
27 </div>
28</div>