Mercurial > public > sg101
diff gpp/templates/forums/forum_index.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 | 593fb6dbd449 |
children | 768e3568addf |
line wrap: on
line diff
--- a/gpp/templates/forums/forum_index.html Mon Jan 17 04:00:59 2011 +0000 +++ b/gpp/templates/forums/forum_index.html Thu Jan 20 04:03:48 2011 +0000 @@ -1,4 +1,5 @@ {% extends 'base.html' %} +{% load url from future %} {% load forum_tags %} {% block custom_head %} {% if feed %} @@ -11,8 +12,8 @@ <div class="forum-block"> {% if user.is_authenticated %} -<a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> • -<form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} +<a href="{% url 'forums-new_topic' slug=forum.slug %}">New Topic</a> • +<form action="{% url 'forums-catchup' slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} <input type="submit" value="Mark All Topics Read" /> </form> {% endif %} @@ -38,7 +39,7 @@ {% endif %} </td> <td class="forum-index_replies">{{ topic.reply_count }}</td> - <td class="forum-index_author"><a href="{% url bio-view_profile username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a></td> + <td class="forum-index_author"><a href="{% url 'bio-view_profile' username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a></td> <td class="forum-index_views">{{ topic.view_count }}</td> <td class="forum-index_last_post"> {% last_post_info topic.last_post %} @@ -55,13 +56,13 @@ </table> {{ page_nav }} {% if user.is_authenticated %} -<a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> • -<form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} +<a href="{% url 'forums-new_topic' slug=forum.slug %}">New Topic</a> • +<form action="{% url 'forums-catchup' slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} <input type="submit" value="Mark All Topics Read" /> </form> {% endif %} {% if can_moderate %} -<p><a href="{% url forums-mod_forum slug=forum.slug %}">Moderate this forum</a></p> +<p><a href="{% url 'forums-mod_forum' slug=forum.slug %}">Moderate this forum</a></p> {% endif %} {% current_forum_time user %} </div>