-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdistro_switch.html
More file actions
25 lines (22 loc) · 1.24 KB
/
distro_switch.html
File metadata and controls
25 lines (22 loc) · 1.24 KB
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
<div id="distro-switch" class="btn-group btn-group-justified" data-toggle="buttons">
{% for distro in site.distros %}
<label id="{{ distro }}-option" class="distro-button btn btn-xs {% if page.available_distros[distro] %}btn-primary{% else %}btn-default{% endif %}" href="#{{ distro }}" data="{{ distro }}">
<input type="radio" name="options" id="{{ distro }}-radio" autocomplete="off"> {{ distro }}
</label>
{% endfor %}
<!-- Older distros -->
<div class="btn-group dropdown">
<label type="button" class="btn btn-xs dropdown-toggle {% if page.n_available_older_distros > 0 %}btn-primary{% else %}btn-default{% endif %}" data-toggle="dropdown" id="older-distro-button">
<input type="radio" name="options" autocomplete="off">
<span id="older-label">Older</span>
<span class="caret"></span>
</label>
<ul class="dropdown-menu" role="menu">
{% for distro in site.old_distros %}
<li data="{{ distro }}" id="{{ distro }}-option" class="{% unless page.available_older_distros[distro] %}disabled{% endunless %} older-distro-option" href="#{{ distro }}">
<a href="#{{ distro }}" data="{{ distro }}" id="{{ distro }}-button">{{ distro }}</a>
</li>
{% endfor %}
</ul>
</div>
</div>