diff 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
line wrap: on
line diff
--- a/gpp/templates/forums/forum_index.html	Sun Aug 23 04:04:29 2009 +0000
+++ b/gpp/templates/forums/forum_index.html	Sat Aug 29 20:54:16 2009 +0000
@@ -9,6 +9,7 @@
 </h3>
 
 <div class="forum-block">
+<a href="{% url forums-new_topic slug=forum.slug %}">New Post</a>
 <table class="forum-index-table">
    <thead>
       <tr>
@@ -23,7 +24,7 @@
    {% for topic in topics %}
       <tr>
          <td><h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td>
-         <td class="forum-index_replies">{{ topic.post_count }}</td>
+         <td class="forum-index_replies">{{ topic.reply_count }}</td>
          <td class="forum-index_author">{{ topic.user.username }}</td>
          <td class="forum-index_views">{{ topic.view_count }}</td>
          <td class="forum-index_last_post">