aboutsummaryrefslogtreecommitdiff
path: root/_templates/versions.html
diff options
context:
space:
mode:
Diffstat (limited to '_templates/versions.html')
-rw-r--r--_templates/versions.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/_templates/versions.html b/_templates/versions.html
new file mode 100644
index 0000000..a68c705
--- /dev/null
+++ b/_templates/versions.html
@@ -0,0 +1,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>
+