Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
309:8a0bae48b6ca | 310:daa2916f5b34 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load url from future %} | |
2 {% load forum_tags %} | 3 {% load forum_tags %} |
3 {% block custom_head %} | 4 {% block custom_head %} |
4 {% if feed %} | 5 {% if feed %} |
5 <link rel="alternate" type="application/rss+xml" title="{{ feed.name }}" href="{{ feed.feed }}" /> | 6 <link rel="alternate" type="application/rss+xml" title="{{ feed.name }}" href="{{ feed.feed }}" /> |
6 {% endif %} | 7 {% endif %} |
9 {% block content %} | 10 {% block content %} |
10 {% forum_navigation forum %} | 11 {% forum_navigation forum %} |
11 | 12 |
12 <div class="forum-block"> | 13 <div class="forum-block"> |
13 {% if user.is_authenticated %} | 14 {% if user.is_authenticated %} |
14 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> • | 15 <a href="{% url 'forums-new_topic' slug=forum.slug %}">New Topic</a> • |
15 <form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} | 16 <form action="{% url 'forums-catchup' slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} |
16 <input type="submit" value="Mark All Topics Read" /> | 17 <input type="submit" value="Mark All Topics Read" /> |
17 </form> | 18 </form> |
18 {% endif %} | 19 {% endif %} |
19 {{ page_nav }} | 20 {{ page_nav }} |
20 <table class="forum-index-table"> | 21 <table class="forum-index-table"> |
36 {% if topic.page_range %} | 37 {% if topic.page_range %} |
37 {% topic_page_range topic %} | 38 {% topic_page_range topic %} |
38 {% endif %} | 39 {% endif %} |
39 </td> | 40 </td> |
40 <td class="forum-index_replies">{{ topic.reply_count }}</td> | 41 <td class="forum-index_replies">{{ topic.reply_count }}</td> |
41 <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> | 42 <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> |
42 <td class="forum-index_views">{{ topic.view_count }}</td> | 43 <td class="forum-index_views">{{ topic.view_count }}</td> |
43 <td class="forum-index_last_post"> | 44 <td class="forum-index_last_post"> |
44 {% last_post_info topic.last_post %} | 45 {% last_post_info topic.last_post %} |
45 </td> | 46 </td> |
46 </tr> | 47 </tr> |
53 {% endfor %} | 54 {% endfor %} |
54 </tbody> | 55 </tbody> |
55 </table> | 56 </table> |
56 {{ page_nav }} | 57 {{ page_nav }} |
57 {% if user.is_authenticated %} | 58 {% if user.is_authenticated %} |
58 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> • | 59 <a href="{% url 'forums-new_topic' slug=forum.slug %}">New Topic</a> • |
59 <form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} | 60 <form action="{% url 'forums-catchup' slug=forum.slug %}" method="post" style="display:inline">{% csrf_token %} |
60 <input type="submit" value="Mark All Topics Read" /> | 61 <input type="submit" value="Mark All Topics Read" /> |
61 </form> | 62 </form> |
62 {% endif %} | 63 {% endif %} |
63 {% if can_moderate %} | 64 {% if can_moderate %} |
64 <p><a href="{% url forums-mod_forum slug=forum.slug %}">Moderate this forum</a></p> | 65 <p><a href="{% url 'forums-mod_forum' slug=forum.slug %}">Moderate this forum</a></p> |
65 {% endif %} | 66 {% endif %} |
66 {% current_forum_time user %} | 67 {% current_forum_time user %} |
67 </div> | 68 </div> |
68 {% endblock %} | 69 {% endblock %} |