Author: adrian
Date: 2010-01-09 14:41:05 -0600 (Sat, 09 Jan 2010)
New Revision: 12143
Modified:
djangoproject.com/djangodocs/templates/docs/doc.html
Log:
Fixed small bug in djangodocs doc.html template where the generated URLs would
have two slashes together if docurl was empty. I'm just hard-coding the URLs to
be more efficient.
Modified: djangoproject.com/djangodocs/templates/docs/doc.html
===================================================================
--- djangoproject.com/djangodocs/templates/docs/doc.html 2010-01-09
20:11:01 UTC (rev 12142)
+++ djangoproject.com/djangodocs/templates/docs/doc.html 2010-01-09
20:41:05 UTC (rev 12143)
@@ -42,11 +42,11 @@
{% 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 @@
<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>
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.