Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #47 from apollo13/docindex

Fixed the doc switcher for links on the startpage.
  • Loading branch information...
commit c125bfd7f062717173008b0e23f7d67a1f2fb840 2 parents 7124929 + 3f19e8b
@aaugustin aaugustin 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.