diff gpp/templates/forums/display_post.html @ 212:fad7548b7f6e

Fix #80: give moderators the ability to deactivate users for spam.
author Brian Neal <bgneal@gmail.com>
date Sun, 09 May 2010 20:53:34 +0000
parents b4305e18d3af
children 8c1832b9d815
line wrap: on
line diff
--- a/gpp/templates/forums/display_post.html	Sat May 08 23:44:59 2010 +0000
+++ b/gpp/templates/forums/display_post.html	Sun May 09 20:53:34 2010 +0000
@@ -49,6 +49,10 @@
       {% if can_moderate %}
       <a href="#" class="post-delete" id="dp-{{ post.id }}"
          title="Delete this post"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" /></a>
+         {% if post.user != user %}
+         <a href="{% url forums-spammer post.id %}" title="This is spam">
+            <img src="{{ MEDIA_URL }}icons/exclamation.png" alt="Spammer" /></a>
+         {% endif %}
       {% endif %}
       </div>
    </td>