Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
80:a4fdc4d23b9e | 81:e356ea79a7a2 |
---|---|
1 {% extends 'base.html' %} | |
2 {% block title %}Forums{% endblock %} | |
3 {% block content %} | |
4 <h2>Forums</h2> | |
5 | |
6 <div class="forum-block"> | |
7 {% for iter in cats %} | |
8 <h3>{{ iter.cat }}</h3> | |
9 <table class="forum-index-table"> | |
10 <thead> | |
11 <tr> | |
12 <th class="forum-title">Forum</th> | |
13 <th class="forum-topics">Topics</th> | |
14 <th class="forum-posts">Posts</th> | |
15 <th class="forum-last_post">Last Post</th> | |
16 </tr> | |
17 </thead> | |
18 <tbody> | |
19 {% for forum in iter.forums %} | |
20 <tr> | |
21 <td><h4><a href="{{ forum.get_absolute_url }}">{{ forum.name }}</a></h4> | |
22 <p>{{ forum.description }}</p></td> | |
23 <td class="forum-topics">{{ forum.topic_count }}</td> | |
24 <td class="forum-posts">{{ forum.post_count }}</td> | |
25 <td class="forum-last_post"> | |
26 {% if forum.last_post %} | |
27 {{ forum.last_post.update_date|date }}<br /> | |
28 {{ forum.last_post.user.username }} | |
29 {% else %} | |
30 <i>No Posts</i> | |
31 {% endif %} | |
32 </td> | |
33 </tr> | |
34 {% endfor %} | |
35 </tbody> | |
36 </table> | |
37 {% endfor %} | |
38 </div> | |
39 {% endblock %} |