Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
108:80ab249d1adc | 109:07be3e39e639 |
---|---|
32 {% for post in page.object_list %} | 32 {% for post in page.object_list %} |
33 {% include 'forums/display_post.html' %} | 33 {% include 'forums/display_post.html' %} |
34 {% endfor %} | 34 {% endfor %} |
35 </table> | 35 </table> |
36 {{ page_nav }} | 36 {{ page_nav }} |
37 {% if can_moderate %} | |
38 <div class="forum-mod-controls"> | |
39 <form action="{% url forums-mod_topic_stick topic.id %}" method="post"> | |
40 <input type="submit" value="{% if topic.sticky %}Unstick{% else %}Stick{% endif %} Topic" /> | |
41 </form> | |
42 <form action="{% url forums-mod_topic_lock topic.id %}" method="post"> | |
43 <input type="submit" value="{% if topic.locked %}Unlock{% else %}Lock{% endif %} Topic" /> | |
44 </form> | |
45 <form action="{% url forums-mod_topic_delete topic.id %}" method="post"> | |
46 <input type="submit" value="Delete Topic" id="forum-mod-del-topic" /> | |
47 </form> | |
48 </div> | |
49 {% endif %} | |
37 | 50 |
38 {% if last_page and can_reply %} | 51 {% if last_page and can_reply %} |
39 <a name="forum-reply-form"></a> | 52 <a name="forum-reply-form"></a> |
40 <form action="" method="post" id="forums-quick-reply"> | 53 <form action="" method="post" id="forums-quick-reply"> |
41 <fieldset> | 54 <fieldset> |