Mercurial > public > sg101
view 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 |
line wrap: on
line source
{% load avatar_tags %} <tr class="forum-post {% cycle 'odd' 'even' %}"> <td class="forum-post-author"> <a name="p{{ post.id }}"></a> <a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a><br /> {% avatar post.user %} Joined: {{ post.user.date_joined|date:"M d, Y" }}<br /> Posts: {{ post.user.get_profile.forum_post_count }}<br /> Location: {{ post.user.get_profile.location }}<br /> </td> <td class="forum-post-body"> <div class="forum-post-info quiet"> <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> Posted on {{ post.creation_date|date:"M d, Y H:i" }} {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %} </div> <div class="forum-post-body"> {{ post.html|safe }} </div> <div class="forum-post-info-tools"> <a href="#" class="post-flag" id="fp-{{ post.id }}" title="Flag this post as spam, abuse, or a violation of site rules."> <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a> </div> </td> </tr>