Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- a/gpp/templates/forums/forum_index.html Sat Aug 29 20:54:16 2009 +0000 +++ b/gpp/templates/forums/forum_index.html Sat Aug 29 22:01:40 2009 +0000 @@ -1,4 +1,5 @@ {% extends 'base.html' %} +{% load forum_tags %} {% block title %}Forums: {{ forum.name }}{% endblock %} {% block content %} <h2>Forums: {{ forum.name }}</h2> @@ -28,12 +29,7 @@ <td class="forum-index_author">{{ topic.user.username }}</td> <td class="forum-index_views">{{ topic.view_count }}</td> <td class="forum-index_last_post"> - {% if topic.last_post %} - {{ topic.last_post.update_date|date }}<br /> - {{ topic.last_post.user.username }} - {% else %} - <i>No Posts</i> - {% endif %} + {% last_post_info topic.last_post %} </td> </tr> {% empty %}