comparison 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
comparison
equal deleted inserted replaced
106:cb72577785df 107:e94398f5e027
1 {% load avatar_tags %} 1 {% load avatar_tags %}
2 {% load forum_tags %} 2 {% load forum_tags %}
3 <tr class="forum-post {% cycle 'odd' 'even' %}"> 3 <tr class="forum-post {% cycle 'odd' 'even' %}" id="post-{{ post.id }}">
4 <td class="forum-post-author"> 4 <td class="forum-post-author">
5 <a name="p{{ post.id }}"></a> 5 <a name="p{{ post.id }}"></a>
6 <a href="{% url bio-view_profile username=post.user.username %}" title="View Profile for {{ post.user.username }}">{{ post.user.username }}</a><br /> 6 <a href="{% url bio-view_profile username=post.user.username %}" title="View Profile for {{ post.user.username }}">{{ post.user.username }}</a><br />
7 <a href="{% url bio-view_profile username=post.user.username %}">{% avatar post.user %}</a> 7 <a href="{% url bio-view_profile username=post.user.username %}">{% avatar post.user %}</a>
8 Joined: {{ post.user.date_joined|date:"M d, Y" }}<br /> 8 Joined: {{ post.user.date_joined|date:"M d, Y" }}<br />
26 {% post_edit_button post user can_moderate MEDIA_URL %} 26 {% post_edit_button post user can_moderate MEDIA_URL %}
27 <a href="#" class="post-flag" id="fp-{{ post.id }}" 27 <a href="#" class="post-flag" id="fp-{{ post.id }}"
28 title="Flag this post as spam, abuse, or a violation of site rules."> 28 title="Flag this post as spam, abuse, or a violation of site rules.">
29 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a> 29 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a>
30 {% if can_moderate %} 30 {% if can_moderate %}
31 <a href=""><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" title="Delete post" /></a> 31 <a href="#" class="post-delete" id="dp-{{ post.id }}"
32 title="Delete this post"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" /></a>
32 {% endif %} 33 {% endif %}
33 </div> 34 </div>
34 </td> 35 </td>
35 </tr> 36 </tr>