Mercurial > public > sg101
annotate gpp/templates/forums/forum_index.html @ 85:531fcc342a03
Forums: put the forum indices under the url forums/forum to avoid clashing with other functions. Modified the forum index template to have a link to the topic creator's profile.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 30 Aug 2009 19:58:42 +0000 |
parents | 9e5e52556d5b |
children | 4c33e266db03 |
rev | line source |
---|---|
bgneal@82 | 1 {% extends 'base.html' %} |
bgneal@84 | 2 {% load forum_tags %} |
bgneal@82 | 3 {% block title %}Forums: {{ forum.name }}{% endblock %} |
bgneal@82 | 4 {% block content %} |
bgneal@82 | 5 <h2>Forums: {{ forum.name }}</h2> |
bgneal@82 | 6 |
bgneal@82 | 7 <h3> |
bgneal@82 | 8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> » |
bgneal@82 | 9 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> |
bgneal@82 | 10 </h3> |
bgneal@82 | 11 |
bgneal@82 | 12 <div class="forum-block"> |
bgneal@83 | 13 <a href="{% url forums-new_topic slug=forum.slug %}">New Post</a> |
bgneal@82 | 14 <table class="forum-index-table"> |
bgneal@82 | 15 <thead> |
bgneal@82 | 16 <tr> |
bgneal@82 | 17 <th class="forum-index_title">Topics</th> |
bgneal@82 | 18 <th class="forum-index_replies">Replies</th> |
bgneal@82 | 19 <th class="forum-index_author">Author</th> |
bgneal@82 | 20 <th class="forum-index_views">Views</th> |
bgneal@82 | 21 <th class="forum-index_last_post">Last Post</th> |
bgneal@82 | 22 </tr> |
bgneal@82 | 23 </thead> |
bgneal@82 | 24 <tbody> |
bgneal@82 | 25 {% for topic in topics %} |
bgneal@82 | 26 <tr> |
bgneal@82 | 27 <td><h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> |
bgneal@83 | 28 <td class="forum-index_replies">{{ topic.reply_count }}</td> |
bgneal@85 | 29 <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> |
bgneal@82 | 30 <td class="forum-index_views">{{ topic.view_count }}</td> |
bgneal@82 | 31 <td class="forum-index_last_post"> |
bgneal@84 | 32 {% last_post_info topic.last_post %} |
bgneal@82 | 33 </td> |
bgneal@82 | 34 </tr> |
bgneal@82 | 35 {% empty %} |
bgneal@82 | 36 <tr> |
bgneal@82 | 37 <td colspan="4"> |
bgneal@82 | 38 <i>No topics available.</i> |
bgneal@82 | 39 </td> |
bgneal@82 | 40 </tr> |
bgneal@82 | 41 {% endfor %} |
bgneal@82 | 42 </tbody> |
bgneal@82 | 43 </table> |
bgneal@82 | 44 </div> |
bgneal@82 | 45 {% endblock %} |