comparison gpp/templates/forums/forum_index.html @ 83:5b4c812b448e

Forums: Added the ability to add a new topic. This is very much a work in progress.
author Brian Neal <bgneal@gmail.com>
date Sat, 29 Aug 2009 20:54:16 +0000
parents bc3978f023c2
children 9e5e52556d5b
comparison
equal deleted inserted replaced
82:bc3978f023c2 83:5b4c812b448e
7 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo; 7 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
8 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> 8 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a>
9 </h3> 9 </h3>
10 10
11 <div class="forum-block"> 11 <div class="forum-block">
12 <a href="{% url forums-new_topic slug=forum.slug %}">New Post</a>
12 <table class="forum-index-table"> 13 <table class="forum-index-table">
13 <thead> 14 <thead>
14 <tr> 15 <tr>
15 <th class="forum-index_title">Topics</th> 16 <th class="forum-index_title">Topics</th>
16 <th class="forum-index_replies">Replies</th> 17 <th class="forum-index_replies">Replies</th>
21 </thead> 22 </thead>
22 <tbody> 23 <tbody>
23 {% for topic in topics %} 24 {% for topic in topics %}
24 <tr> 25 <tr>
25 <td><h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> 26 <td><h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td>
26 <td class="forum-index_replies">{{ topic.post_count }}</td> 27 <td class="forum-index_replies">{{ topic.reply_count }}</td>
27 <td class="forum-index_author">{{ topic.user.username }}</td> 28 <td class="forum-index_author">{{ topic.user.username }}</td>
28 <td class="forum-index_views">{{ topic.view_count }}</td> 29 <td class="forum-index_views">{{ topic.view_count }}</td>
29 <td class="forum-index_last_post"> 30 <td class="forum-index_last_post">
30 {% if topic.last_post %} 31 {% if topic.last_post %}
31 {{ topic.last_post.update_date|date }}<br /> 32 {{ topic.last_post.update_date|date }}<br />