From a8fa2b290b1329ec576f264dc6bb470f819fda4d Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Fri, 25 Mar 2022 19:32:53 +0100 Subject: add language switcher in sidebar --- _templates/versions.html | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 _templates/versions.html (limited to '_templates') 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. #} +
+ + {{_('Versions')}} + v: {{ version }} + + +
+ {% if languages|length >= 1 %} +
+
{{ _('Langages') }}
+ {% for slug, url in languages %} + {% if slug == language %} {% endif %} +
{{ slug }}
+ {% if slug == language %}
{% endif %} + {% endfor %} +
+ {% endif %} + {% if versions|length >= 1 %} +
+
{{ _('Versions') }}
+ {% for slug, url in versions %} + {% if slug == version %} {% endif %} +
{{ slug }}
+ {% if slug == version %}
{% endif %} + {% endfor %} +
+ {% endif %} + {% if downloads|length >= 1 %} +
+
{{ _('Téléchargements') }}
+ {% for type, url in downloads %} +
{{ type }}
+ {% endfor %} +
+ {% endif %} +
+
+ -- cgit v1.2.3