Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 34255cdb authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

Simplify versions handling

parent 5b4c7190
Branches
Tags
No related merge requests found
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<div class="rst-other-versions"> <div class="rst-other-versions">
<dl> <dl>
<dt>{{ _('Document Release Versions') }}</dt> <dt>{{ _('Document Release Versions') }}</dt>
{% for version_slug, version_url in versions %} {% for version_slug in versions %}
<dd><a href="{{pages_url}}{{version_url}}">{{ version_slug }}</a></dd> <dd><a href="{{pages_url}}/{{version_slug}}">{{ version_slug }}</a></dd>
{% endfor %} {% endfor %}
</dl> </dl>
<dl> <dl>
......
...@@ -117,11 +117,7 @@ html_context = { ...@@ -117,11 +117,7 @@ html_context = {
"pages_slug": pages_slug, "pages_slug": pages_slug,
"docs_url": docs_url, "docs_url": docs_url,
"current_version": version, "current_version": version,
"versions": ( "versions": ("latest", "0.0", "0.1")
("latest", "/"),
("0.0", "/0.0/"),
("0.1", "/0.1/")
),
} }
# -- Options for LaTeX output --------------------------------------------- # -- Options for LaTeX output ---------------------------------------------
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment