Mercurial > public > sg101
comparison gpp/templates/forums/forum_index.html @ 84:9e5e52556d5b
Forums: added a last_post_info template tag. Still need to add a go to last post icon for it.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 29 Aug 2009 22:01:40 +0000 |
parents | 5b4c812b448e |
children | 531fcc342a03 |
comparison
equal
deleted
inserted
replaced
83:5b4c812b448e | 84:9e5e52556d5b |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load forum_tags %} | |
2 {% block title %}Forums: {{ forum.name }}{% endblock %} | 3 {% block title %}Forums: {{ forum.name }}{% endblock %} |
3 {% block content %} | 4 {% block content %} |
4 <h2>Forums: {{ forum.name }}</h2> | 5 <h2>Forums: {{ forum.name }}</h2> |
5 | 6 |
6 <h3> | 7 <h3> |
26 <td><h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> | 27 <td><h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> |
27 <td class="forum-index_replies">{{ topic.reply_count }}</td> | 28 <td class="forum-index_replies">{{ topic.reply_count }}</td> |
28 <td class="forum-index_author">{{ topic.user.username }}</td> | 29 <td class="forum-index_author">{{ topic.user.username }}</td> |
29 <td class="forum-index_views">{{ topic.view_count }}</td> | 30 <td class="forum-index_views">{{ topic.view_count }}</td> |
30 <td class="forum-index_last_post"> | 31 <td class="forum-index_last_post"> |
31 {% if topic.last_post %} | 32 {% last_post_info topic.last_post %} |
32 {{ topic.last_post.update_date|date }}<br /> | |
33 {{ topic.last_post.user.username }} | |
34 {% else %} | |
35 <i>No Posts</i> | |
36 {% endif %} | |
37 </td> | 33 </td> |
38 </tr> | 34 </tr> |
39 {% empty %} | 35 {% empty %} |
40 <tr> | 36 <tr> |
41 <td colspan="4"> | 37 <td colspan="4"> |