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
Pipeline #791 passed with stage
in 3 minutes and 22 seconds
......@@ -8,8 +8,8 @@
<div class="rst-other-versions">
<dl>
<dt>{{ _('Document Release Versions') }}</dt>
{% for version_slug, version_url in versions %}
<dd><a href="{{pages_url}}{{version_url}}">{{ version_slug }}</a></dd>
{% for version_slug in versions %}
<dd><a href="{{pages_url}}/{{version_slug}}">{{ version_slug }}</a></dd>
{% endfor %}
</dl>
<dl>
......
......@@ -117,11 +117,7 @@ html_context = {
"pages_slug": pages_slug,
"docs_url": docs_url,
"current_version": version,
"versions": (
("latest", "/"),
("0.0", "/0.0/"),
("0.1", "/0.1/")
),
"versions": ("latest", "0.0", "0.1")
}
# -- 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