Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Aymeric Augustin authored February 10, 2013

Showing 1 changed file with 6 additions and 1 deletion. Show diff stats Hide diff stats

  1. 7  docs/templates/docs/doc.html
7  docs/templates/docs/doc.html
@@ -21,7 +21,12 @@
21 21
       {% for v in versions %}
22 22
         {% if version != v %}
23 23
           <li class="other">
24  
-            <a href="{% url 'document-detail' lang=lang version=v url=docurl %}">{{ v }}</a></li>
  24
+          {% if docurl %}
  25
+            <a href="{% url 'document-detail' lang=lang version=v url=docurl %}">{{ v }}</a>
  26
+          {% else %}
  27
+            <a href="{% url 'document-index' lang=lang version=v %}">{{ v }}</a>
  28
+          {% endif %}
  29
+          </li>
25 30
         {% endif %}
26 31
       {% endfor %}
27 32
       <li class="current"

0 notes on commit c125bfd

Please sign in to comment.
Something went wrong with that request. Please try again.