Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 78f3f8e70d2b870d57c417fab44526a92cc53b0d 1 parent 0e06809
adrian authored
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>
Please sign in to comment.
Something went wrong with that request. Please try again.