Mercurial > public > sg101
annotate gpp/templates/forums/topic_list.html @ 331:1ea63aa3f21d
Committing DreadInBabylon's default avatar.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 24 Feb 2011 04:01:18 +0000 |
parents | daa2916f5b34 |
children | dd673fae508d |
rev | line source |
---|---|
bgneal@167 | 1 {% extends 'base.html' %} |
bgneal@310 | 2 {% load url from future %} |
bgneal@167 | 3 {% load forum_tags %} |
bgneal@167 | 4 {% block title %}Forums: {{ title }}{% endblock %} |
bgneal@280 | 5 {% block custom_js %} |
bgneal@280 | 6 {% include "forums/forum_query.js" %} |
bgneal@280 | 7 {% endblock %} |
bgneal@167 | 8 {% block content %} |
bgneal@283 | 9 {% forum_navigation title %} |
bgneal@280 | 10 {% include "forums/forum_query.html" %} |
bgneal@167 | 11 <div class="forum-block"> |
bgneal@167 | 12 {{ page_nav }} |
bgneal@167 | 13 <table class="forum-topic-table"> |
bgneal@167 | 14 <thead> |
bgneal@167 | 15 <th class="col-0">Forum</th> |
bgneal@167 | 16 <th class="col-1">Topic</th> |
bgneal@167 | 17 <th class="col-2">Author</th> |
bgneal@167 | 18 <th class="col-3">Replies</th> |
bgneal@167 | 19 <th class="col-4">Views</th> |
bgneal@167 | 20 <th class="col-5">Last Post</th> |
bgneal@167 | 21 </thead> |
bgneal@167 | 22 <tbody> |
bgneal@167 | 23 {% for topic in page.object_list %} |
bgneal@167 | 24 <tr class="{% cycle 'odd' 'even' %}"> |
bgneal@167 | 25 <td class="col-0"> |
bgneal@167 | 26 <h4><a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a></h4> |
bgneal@167 | 27 </td> |
bgneal@167 | 28 <td class="col-1"> |
bgneal@167 | 29 {% topic_icons topic %} |
bgneal@167 | 30 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4> |
bgneal@167 | 31 {% if topic.page_range %} |
bgneal@167 | 32 {% topic_page_range topic %} |
bgneal@167 | 33 {% endif %} |
bgneal@167 | 34 </td> |
bgneal@167 | 35 <td class="col-2"> |
bgneal@310 | 36 <a href="{% url 'bio-view_profile' username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a> |
bgneal@167 | 37 </td> |
bgneal@167 | 38 <td class="col-3"> |
bgneal@167 | 39 {{ topic.reply_count }} |
bgneal@167 | 40 </td> |
bgneal@167 | 41 <td class="col-4"> |
bgneal@167 | 42 {{ topic.view_count }} |
bgneal@167 | 43 </td> |
bgneal@167 | 44 <td class="col-5"> |
bgneal@167 | 45 {% last_post_info topic.last_post %} |
bgneal@167 | 46 </td> |
bgneal@167 | 47 </tr> |
bgneal@167 | 48 {% empty %} |
bgneal@167 | 49 <tr> |
bgneal@167 | 50 <td colspan="6" class="info"> |
bgneal@167 | 51 <em>No topics meet your search criteria.</em> |
bgneal@167 | 52 </td> |
bgneal@167 | 53 </tr> |
bgneal@167 | 54 {% endfor %} |
bgneal@167 | 55 </tbody> |
bgneal@167 | 56 </table> |
bgneal@167 | 57 {{ page_nav }} |
bgneal@167 | 58 </div> |
bgneal@167 | 59 {% endblock %} |