diff gpp/templates/forums/topic.html @ 109:07be3e39e639

Forums: implemented topic level moderator controls.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Sep 2009 18:03:57 +0000
parents e94398f5e027
children c329bfaed4a7
line wrap: on
line diff
--- a/gpp/templates/forums/topic.html	Sat Sep 26 03:55:50 2009 +0000
+++ b/gpp/templates/forums/topic.html	Sat Sep 26 18:03:57 2009 +0000
@@ -34,6 +34,19 @@
 {% endfor %}
 </table>
 {{ page_nav }}
+{% if can_moderate %}
+<div class="forum-mod-controls">
+   <form action="{% url forums-mod_topic_stick topic.id %}" method="post">
+      <input type="submit" value="{% if topic.sticky %}Unstick{% else %}Stick{% endif %} Topic" />
+   </form>
+   <form action="{% url forums-mod_topic_lock topic.id %}" method="post">
+      <input type="submit" value="{% if topic.locked %}Unlock{% else %}Lock{% endif %} Topic" />
+   </form>
+   <form action="{% url forums-mod_topic_delete topic.id %}" method="post">
+      <input type="submit" value="Delete Topic" id="forum-mod-del-topic" />
+   </form>
+</div>
+{% endif %}
 
 {% if last_page and can_reply %}
 <a name="forum-reply-form"></a>