Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed the doc switcher for links on the startpage.

  • Loading branch information...
commit 3f19e8b0715536853e542240849f1499a3a4dfa8 1 parent 7124929
@apollo13 apollo13 authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 docs/templates/docs/doc.html
View
7 docs/templates/docs/doc.html
@@ -21,7 +21,12 @@
{% for v in versions %}
{% if version != v %}
<li class="other">
- <a href="{% url 'document-detail' lang=lang version=v url=docurl %}">{{ v }}</a></li>
+ {% if docurl %}
+ <a href="{% url 'document-detail' lang=lang version=v url=docurl %}">{{ v }}</a>
+ {% else %}
+ <a href="{% url 'document-index' lang=lang version=v %}">{{ v }}</a>
+ {% endif %}
+ </li>
{% endif %}
{% endfor %}
<li class="current"
Please sign in to comment.
Something went wrong with that request. Please try again.