aboutsummaryrefslogtreecommitdiff
path: root/_templates/versions.html
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2022-03-25 19:32:53 +0100
committern-peugnet <n.peugnet@free.fr>2022-03-26 22:03:20 +0100
commita8fa2b290b1329ec576f264dc6bb470f819fda4d (patch)
tree4127e0dbdf90ea357b1798337aec4b07e6c38d3e /_templates/versions.html
parentf688d73fa32bbdaa0a229a945ebd4c78b3bb6f61 (diff)
downloadclub1-docs-a8fa2b290b1329ec576f264dc6bb470f819fda4d.tar.gz
club1-docs-a8fa2b290b1329ec576f264dc6bb470f819fda4d.zip
add language switcher in sidebar
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>
+