Mercurial > public > sg101
diff gpp/templates/forums/display_post.html @ 107:e94398f5e027
Forums: implemented post delete feature.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 22 Sep 2009 03:36:39 +0000 |
parents | cb72577785df |
children | 80ab249d1adc |
line wrap: on
line diff
--- a/gpp/templates/forums/display_post.html Sat Sep 19 21:49:56 2009 +0000 +++ b/gpp/templates/forums/display_post.html Tue Sep 22 03:36:39 2009 +0000 @@ -1,6 +1,6 @@ {% load avatar_tags %} {% load forum_tags %} -<tr class="forum-post {% cycle 'odd' 'even' %}"> +<tr class="forum-post {% cycle 'odd' 'even' %}" id="post-{{ post.id }}"> <td class="forum-post-author"> <a name="p{{ post.id }}"></a> <a href="{% url bio-view_profile username=post.user.username %}" title="View Profile for {{ post.user.username }}">{{ post.user.username }}</a><br /> @@ -28,7 +28,8 @@ title="Flag this post as spam, abuse, or a violation of site rules."> <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a> {% if can_moderate %} - <a href=""><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" title="Delete post" /></a> + <a href="#" class="post-delete" id="dp-{{ post.id }}" + title="Delete this post"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" /></a> {% endif %} </div> </td>