annotate gpp/templates/forums/display_post.html @ 113:d97ceb95ce02

Forums: ForumLastVisit logic in place. Need to add code for topics and posts next.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Oct 2009 19:10:54 +0000
parents 80ab249d1adc
children 535d02d1c017
rev   line source
bgneal@89 1 {% load avatar_tags %}
bgneal@105 2 {% load forum_tags %}
bgneal@107 3 <tr class="forum-post {% cycle 'odd' 'even' %}" id="post-{{ post.id }}">
bgneal@89 4 <td class="forum-post-author">
bgneal@89 5 <a name="p{{ post.id }}"></a>
bgneal@105 6 <a href="{% url bio-view_profile username=post.user.username %}" title="View Profile for {{ post.user.username }}">{{ post.user.username }}</a><br />
bgneal@105 7 <a href="{% url bio-view_profile username=post.user.username %}">{% avatar post.user %}</a>
bgneal@96 8 Joined: {{ post.user.date_joined|date:"M d, Y" }}<br />
bgneal@96 9 Posts: {{ post.user.get_profile.forum_post_count }}<br />
bgneal@96 10 Location: {{ post.user.get_profile.location }}<br />
bgneal@89 11 </td>
bgneal@89 12 <td class="forum-post-body">
bgneal@89 13 <div class="forum-post-info quiet">
bgneal@98 14 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a>
bgneal@89 15 Posted on {{ post.creation_date|date:"M d, Y H:i" }}
bgneal@104 16 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %}
bgneal@89 17 </div>
bgneal@89 18 <div class="forum-post-body">
bgneal@89 19 {{ post.html|safe }}
bgneal@113 20 {% if post.has_been_edited %}
bgneal@113 21 <p>{{ post.creation_date|date:"M d, Y H:i:s" }} {{ post.update_date|date:"M d, Y H:i:s" }}</p>
bgneal@106 22 <p class="small quiet">Last edited: {{ post.update_date|date:"M d, Y H:i:s" }}</p>
bgneal@113 23 {% endif %}
bgneal@89 24 </div>
bgneal@98 25 <div class="forum-post-info-tools">
bgneal@108 26 {% if can_reply %}
bgneal@108 27 <a href="{% url forums-new_post topic_id=post.topic.id %}?quote={{ post.id }}"><img src="{{ MEDIA_URL }}icons/comment.png" alt="Reply with quote" title="Reply with quote" /></a>
bgneal@108 28 {% endif %}
bgneal@105 29 {% post_edit_button post user can_moderate MEDIA_URL %}
bgneal@98 30 <a href="#" class="post-flag" id="fp-{{ post.id }}"
bgneal@98 31 title="Flag this post as spam, abuse, or a violation of site rules.">
bgneal@98 32 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a>
bgneal@106 33 {% if can_moderate %}
bgneal@107 34 <a href="#" class="post-delete" id="dp-{{ post.id }}"
bgneal@107 35 title="Delete this post"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" /></a>
bgneal@105 36 {% endif %}
bgneal@98 37 </div>
bgneal@89 38 </td>
bgneal@89 39 </tr>