aboutsummaryrefslogtreecommitdiff
path: root/_templates/versions.html
blob: a68c7057dd6c3cf3f2b9434f862aeff5f44a7163 (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
{# Add rst-badge after rst-versions for small badge style. #}
<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
	<span class="rst-current-version" data-toggle="rst-current-version">
		<span class="fa fa-book"> {{_('Versions')}}</span>
		v: {{ version }}
		<span class="fa fa-caret-down"></span>
	</span>
	<div class="rst-other-versions">
		{% if languages|length >= 1 %}
		<dl>
			<dt>{{ _('Langages') }}</dt>
			{% for slug, url in languages %}
			{% if slug == language %} <strong> {% endif %}
				<dd><a href="{{ pathto(url + pagename) }}">{{ slug }}</a></dd>
				{% if slug == language %} </strong> {% endif %}
			{% endfor %}
		</dl>
		{% endif %}
		{% if versions|length >= 1 %}
		<dl>
			<dt>{{ _('Versions') }}</dt>
			{% for slug, url in versions %}
			{% if slug == version %} <strong> {% endif %}
				<dd><a href="{{ pathto(url + pagename) }}">{{ slug }}</a></dd>
				{% if slug == version %} </strong> {% endif %}
			{% endfor %}
		</dl>
		{% endif %}
		{% if downloads|length >= 1 %}
		<dl>
			<dt>{{ _('Téléchargements') }}</dt>
			{% for type, url in downloads %}
			<dd><a href="{{ url }}">{{ type }}</a></dd>
			{% endfor %}
		</dl>
		{% endif %}
	</div>
</div>