forked from eslint/eslint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
version-switcher.html
27 lines (24 loc) · 1.09 KB
/
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="version-switcher-label"
id="version-switcher">
<span id="version-switcher-label" hidden>Version Switcher</span>
<div class="infobox visually-hidden" id="version-infobox">
Selecting a version will take you to the ESLint Web site for that version.
</div>
<label class="switcher__label label--block" for="version-select">
Version
</label>
<select name="version selector" id="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 }}">
v{{ version.number }}
</option>
{% endfor %}
</select>
</div>
</div>