Mercurial > public > sg101
annotate gpp/templates/forums/display_post.html @ 104:59688577a8f1
Forums: display of sticky status. Moderators/superusers see IP address of post. Added a can_reply flag to the template and have view compute it.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 17 Sep 2009 01:44:51 +0000 |
parents | d0d779dd0832 |
children | 08ddfd835305 |
rev | line source |
---|---|
bgneal@89 | 1 {% load avatar_tags %} |
bgneal@89 | 2 <tr class="forum-post {% cycle 'odd' 'even' %}"> |
bgneal@89 | 3 <td class="forum-post-author"> |
bgneal@89 | 4 <a name="p{{ post.id }}"></a> |
bgneal@89 | 5 <a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a><br /> |
bgneal@89 | 6 {% avatar post.user %} |
bgneal@96 | 7 Joined: {{ post.user.date_joined|date:"M d, Y" }}<br /> |
bgneal@96 | 8 Posts: {{ post.user.get_profile.forum_post_count }}<br /> |
bgneal@96 | 9 Location: {{ post.user.get_profile.location }}<br /> |
bgneal@89 | 10 </td> |
bgneal@89 | 11 <td class="forum-post-body"> |
bgneal@89 | 12 <div class="forum-post-info quiet"> |
bgneal@98 | 13 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> |
bgneal@89 | 14 Posted on {{ post.creation_date|date:"M d, Y H:i" }} |
bgneal@104 | 15 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %} |
bgneal@104 | 16 |
bgneal@89 | 17 </div> |
bgneal@89 | 18 <div class="forum-post-body"> |
bgneal@89 | 19 {{ post.html|safe }} |
bgneal@89 | 20 </div> |
bgneal@98 | 21 <div class="forum-post-info-tools"> |
bgneal@98 | 22 <a href="#" class="post-flag" id="fp-{{ post.id }}" |
bgneal@98 | 23 title="Flag this post as spam, abuse, or a violation of site rules."> |
bgneal@98 | 24 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a> |
bgneal@98 | 25 </div> |
bgneal@89 | 26 </td> |
bgneal@89 | 27 </tr> |