Permalink
Browse files

Fixed small bug in djangodocs doc.html template where the generated U…

…RLs would have two slashes together if docurl was empty. I'm just hard-coding the URLs to be more efficient.

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@12143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 0e06809 commit 78f3f8e70d2b870d57c417fab44526a92cc53b0d adrian committed Jan 9, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 djangodocs/templates/docs/doc.html
View
8 djangodocs/templates/docs/doc.html
@@ -42,11 +42,11 @@ <h2 class="deck">
{% ifequal version "dev" %}
This document is for Django's development version, which can be
significantly different from previous releases. Get old docs here:
- <a href="{% url document-detail lang=lang, version="1.1", url=docurl %}">1.1</a>,
- <a href="{% url document-detail lang=lang, version="1.0", url=docurl %}">1.0</a>
+ <a href="/en/1.1/{{ docurl }}">1.1</a>,
+ <a href="/en/1.0/{{ docurl }}">1.0</a>
{% else %}
This document describes Django {{ version }}. For development docs,
- <a href="{% url document-detail lang=lang, version="dev", url=docurl %}">go here</a>.
+ <a href="/en/dev/{{ docurl }}">go here</a>.
{% endifequal %}
</h2>
{{ doc.body|safe }}
@@ -57,7 +57,7 @@ <h2 id="comments">Questions/Feedback</h2>
<p>Having trouble? We'd like to help!</p>
<ul>
<li>
- Try the <a href="/en/dev/faq/">FAQ</a> — it's got answers to many common
+ Try the <a href="/en/dev/faq/">FAQ</a> -— it's got answers to many common
questions.
</li>
<li>

0 comments on commit 78f3f8e

Please sign in to comment.