Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #20747 -- Made the documentation link in the navbar point at th…

…e current version.

Thanks to Andy Cottrell for the report.
  • Loading branch information...
commit 8f93e33c4fd295dd8b58e224e7f060701be4ef71 1 parent 365bb1f
Baptiste Mispelon authored November 19, 2013
2  docs/templates/docs/doc.html
@@ -4,6 +4,8 @@
4 4
 
5 5
 {% block title %}{{ doc.title|striptags|safe }} | {% trans "Django documentation" %}{% endblock %}
6 6
 
  7
+{% block doc_url %}{% url 'document-index' lang=lang version=version %}{% endblock %}
  8
+
7 9
 {% block extrabody %}
8 10
   <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
9 11
   <script>
2  templates/base.html
@@ -24,7 +24,7 @@ <h1 id="logo"><a href="https://www.djangoproject.com/"><img src="{% static "img/
24 24
       <ul id="nav-global">
25 25
         <li id="nav-homepage"><a href="https://www.djangoproject.com/">Home</a></li>
26 26
         <li id="nav-download"><a href="https://www.djangoproject.com/download/">Download</a></li>
27  
-        <li id="nav-documentation"><a href="https://docs.djangoproject.com/">Documentation</a></li>
  27
+        <li id="nav-documentation"><a href="https://docs.djangoproject.com{% block doc_url %}/{% endblock %}">Documentation</a></li>
28 28
         <li id="nav-weblog"><a href="https://www.djangoproject.com/weblog/">Weblog</a></li>
29 29
         <li id="nav-community"><a href="https://www.djangoproject.com/community/">Community</a></li>
30 30
         <li id="nav-code"><a href="https://code.djangoproject.com/">Code</a></li>

0 notes on commit 8f93e33

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