diff gpp/templates/forums/forum_index.html @ 113:d97ceb95ce02

Forums: ForumLastVisit logic in place. Need to add code for topics and posts next.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Oct 2009 19:10:54 +0000
parents e5faf9f0c11a
children 535d02d1c017
line wrap: on
line diff
--- a/gpp/templates/forums/forum_index.html	Wed Sep 30 00:42:13 2009 +0000
+++ b/gpp/templates/forums/forum_index.html	Sun Oct 11 19:10:54 2009 +0000
@@ -10,7 +10,12 @@
 </h3>
 
 <div class="forum-block">
-<a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a>
+{% if user.is_authenticated %}
+<a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> &bull;
+<form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">
+   <input type="submit" value="Mark All Topics Read" />
+</form>
+{% endif %}
 {{ page_nav }}
 <table class="forum-index-table">
    <thead>
@@ -46,6 +51,14 @@
    </tbody>
 </table>
 {{ page_nav }}
+{% if user.is_authenticated %}
+<a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> &bull;
+<form action="{% url forums-catchup slug=forum.slug %}" method="post" style="display:inline">
+   <input type="submit" value="Mark All Topics Read" />
+</form>
+{% endif %}
+{% if can_moderate %}
 <p><a href="{% url forums-mod_forum slug=forum.slug %}">Moderate this forum</a></p>
+{% endif %}
 </div>
 {% endblock %}