Mercurial > public > sg101
annotate gpp/templates/forums/index.html @ 81:e356ea79a7a2
More work on forums. Committing what we got so far.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 23 Aug 2009 00:14:52 +0000 |
parents | |
children | 9e5e52556d5b |
rev | line source |
---|---|
bgneal@81 | 1 {% extends 'base.html' %} |
bgneal@81 | 2 {% block title %}Forums{% endblock %} |
bgneal@81 | 3 {% block content %} |
bgneal@81 | 4 <h2>Forums</h2> |
bgneal@81 | 5 |
bgneal@81 | 6 <div class="forum-block"> |
bgneal@81 | 7 {% for iter in cats %} |
bgneal@81 | 8 <h3>{{ iter.cat }}</h3> |
bgneal@81 | 9 <table class="forum-index-table"> |
bgneal@81 | 10 <thead> |
bgneal@81 | 11 <tr> |
bgneal@81 | 12 <th class="forum-title">Forum</th> |
bgneal@81 | 13 <th class="forum-topics">Topics</th> |
bgneal@81 | 14 <th class="forum-posts">Posts</th> |
bgneal@81 | 15 <th class="forum-last_post">Last Post</th> |
bgneal@81 | 16 </tr> |
bgneal@81 | 17 </thead> |
bgneal@81 | 18 <tbody> |
bgneal@81 | 19 {% for forum in iter.forums %} |
bgneal@81 | 20 <tr> |
bgneal@81 | 21 <td><h4><a href="{{ forum.get_absolute_url }}">{{ forum.name }}</a></h4> |
bgneal@81 | 22 <p>{{ forum.description }}</p></td> |
bgneal@81 | 23 <td class="forum-topics">{{ forum.topic_count }}</td> |
bgneal@81 | 24 <td class="forum-posts">{{ forum.post_count }}</td> |
bgneal@81 | 25 <td class="forum-last_post"> |
bgneal@81 | 26 {% if forum.last_post %} |
bgneal@81 | 27 {{ forum.last_post.update_date|date }}<br /> |
bgneal@81 | 28 {{ forum.last_post.user.username }} |
bgneal@81 | 29 {% else %} |
bgneal@81 | 30 <i>No Posts</i> |
bgneal@81 | 31 {% endif %} |
bgneal@81 | 32 </td> |
bgneal@81 | 33 </tr> |
bgneal@81 | 34 {% endfor %} |
bgneal@81 | 35 </tbody> |
bgneal@81 | 36 </table> |
bgneal@81 | 37 {% endfor %} |
bgneal@81 | 38 </div> |
bgneal@81 | 39 {% endblock %} |