forked from eslint/eslint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nav-version-switcher.html
27 lines (24 loc) · 1.19 KB
/
nav-version-switcher.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<div class="version-switcher">
<a href="/versions/" class="switcher-fallback">Versions</a>
<div role="region" class="switcher switcher--version" aria-labelledby="nav-version-switcher-label" id="nav-version-switcher">
<span id="nav-version-switcher-label" hidden>Language Switcher</span>
<div class="infobox visually-hidden" id="nav-version-infobox">
Selecting a language will take you to the ESLint Web site in that language.
</div>
<label class="switcher__label label--block" for="version-select">
Version
</label>
<select name="version selector" id="nav-version-select" aria-describedby="version-infobox" class="c-custom-select switcher__select auto-switcher">
<option value="{{ eslintVersion }}" selected>
v{{ eslintVersion }}
</option>
{% for version in versions.items %}
<option value="{{ version.number }}"
data-url="{{ version.url }}"
{% if config.version == version.number %} selected {% endif %}>
v{{ version.number }}
</option>
{% endfor %}
</select>
</div>
</div>