diff gpp/templates/shoutbox/shoutbox.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 4557974db0e0
children 88b2b9cb8c1f
line wrap: on
line diff
--- a/gpp/templates/shoutbox/shoutbox.html	Mon Jan 17 04:00:59 2011 +0000
+++ b/gpp/templates/shoutbox/shoutbox.html	Thu Jan 20 04:03:48 2011 +0000
@@ -1,4 +1,5 @@
 {% extends 'side_block.html' %}
+{% load url from future %}
 {% load core_tags %}
 {% block block_title %}Shoutbox{% endblock %}
 {% block block_content %}
@@ -13,7 +14,7 @@
 </div>
 <center>
    <button type="button" id="shoutbox-prev" title="Previous">&laquo;</button>
-   <a href="{% url shoutbox-history %}">Shout History</a>
+   <a href="{% url 'shoutbox-history' %}">Shout History</a>
    <button type="button" id="shoutbox-next" title="Next">&raquo;</button>
 </center>
 {% if user.is_authenticated %}
@@ -30,8 +31,8 @@
 </center>
 {% else %}
 <p>
-Please <a href="{% url accounts-login %}">login</a> or
-<a href="{% url accounts-register %}">register</a> to shout.
+Please <a href="{% url 'accounts-login' %}">login</a> or
+<a href="{% url 'accounts-register' %}">register</a> to shout.
 </p>
 {% endif %}
 {% endblock %}