comparison gpp/templates/forums/display_post.html @ 105:08ddfd835305

Forums: Added icons for forum post moderation tools. Still need to add functionality that goes behind these.
author Brian Neal <bgneal@gmail.com>
date Thu, 17 Sep 2009 02:20:27 +0000
parents 59688577a8f1
children cb72577785df
comparison
equal deleted inserted replaced
104:59688577a8f1 105:08ddfd835305
1 {% load avatar_tags %} 1 {% load avatar_tags %}
2 {% load forum_tags %}
2 <tr class="forum-post {% cycle 'odd' 'even' %}"> 3 <tr class="forum-post {% cycle 'odd' 'even' %}">
3 <td class="forum-post-author"> 4 <td class="forum-post-author">
4 <a name="p{{ post.id }}"></a> 5 <a name="p{{ post.id }}"></a>
5 <a href="{% url bio-view_profile username=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 />
6 {% avatar post.user %} 7 <a href="{% url bio-view_profile username=post.user.username %}">{% avatar post.user %}</a>
7 Joined: {{ post.user.date_joined|date:"M d, Y" }}<br /> 8 Joined: {{ post.user.date_joined|date:"M d, Y" }}<br />
8 Posts: {{ post.user.get_profile.forum_post_count }}<br /> 9 Posts: {{ post.user.get_profile.forum_post_count }}<br />
9 Location: {{ post.user.get_profile.location }}<br /> 10 Location: {{ post.user.get_profile.location }}<br />
10 </td> 11 </td>
11 <td class="forum-post-body"> 12 <td class="forum-post-body">
12 <div class="forum-post-info quiet"> 13 <div class="forum-post-info quiet">
13 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> 14 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a>
14 Posted on {{ post.creation_date|date:"M d, Y H:i" }} 15 Posted on {{ post.creation_date|date:"M d, Y H:i" }}
15 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %} 16 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %}
16
17 </div> 17 </div>
18 <div class="forum-post-body"> 18 <div class="forum-post-body">
19 {{ post.html|safe }} 19 {{ post.html|safe }}
20 </div> 20 </div>
21 <div class="forum-post-info-tools"> 21 <div class="forum-post-info-tools">
22 <a href=""><img src="{{ MEDIA_URL }}icons/comment.png" alt="Reply with quote" title="Reply with quote" /></a>
23 {% post_edit_button post user can_moderate MEDIA_URL %}
24 {% if can_moderate %}
22 <a href="#" class="post-flag" id="fp-{{ post.id }}" 25 <a href="#" class="post-flag" id="fp-{{ post.id }}"
23 title="Flag this post as spam, abuse, or a violation of site rules."> 26 title="Flag this post as spam, abuse, or a violation of site rules.">
24 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a> 27 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a>
28 <a href=""><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" title="Delete post" /></a>
29 {% endif %}
25 </div> 30 </div>
26 </td> 31 </td>
27 </tr> 32 </tr>