diff gpp/templates/forums/index.html @ 167:cf9f9d4c4d54

Adding a query to the forums to get all the topics with unread posts. This is for ticket #54.
author Brian Neal <bgneal@gmail.com>
date Sun, 24 Jan 2010 22:33:11 +0000
parents f7a6b8fe4556
children 6f14970b103a
line wrap: on
line diff
--- a/gpp/templates/forums/index.html	Sun Jan 17 20:24:01 2010 +0000
+++ b/gpp/templates/forums/index.html	Sun Jan 24 22:33:11 2010 +0000
@@ -5,6 +5,14 @@
 {% block content %}
 <h2>Forums</h2>
 
+<form action="." method="get" id="forum-query-form">
+   <select name="query">
+      <option value="unread">Show topics with unread posts</option>
+      <option value="mine">Show my posts</option>
+      <option value="unanswered">Show unanswered posts</option>
+   </select><input type="submit" value="Go" />
+</form>
+
 <div class="forum-block">
 {% for iter in cats %}
    <h3>{{ iter.cat }}</h3>