bgneal@310: {% load url from future %} bgneal@492: {% load bio_tags %} bgneal@105: {% load forum_tags %} bgneal@377: <tr class="forum-post {{ rowcolors }}" id="post-{{ post.id }}"> bgneal@89: <td class="forum-post-author"> bgneal@89: <a name="p{{ post.id }}"></a> bgneal@492: <span class="post-author">{% profile_link post.user.username %}</span><br /> bgneal@492: {% avatar post.user %}<br /> bgneal@96: Joined: {{ post.user.date_joined|date:"M d, Y" }}<br /> bgneal@329: Posts: {{ post.user.user_profile.forum_post_count }}<br /> bgneal@329: {% if post.user.user_profile.location %} bgneal@344: {{ post.user.user_profile.location }}<br /> bgneal@121: {% endif %} bgneal@329: {% for bo in post.user.user_profile.badge_ownership %} bgneal@204: <img src="{{ bo.badge.image.url }}" alt="{{ bo.badge_count_str }}" title="{{ bo.badge_count_str }}" /> bgneal@204: {% endfor %} bgneal@121: {% if user.is_authenticated %} bgneal@121: <p> bgneal@310: <a href="{% url 'messages-compose_to' post.user.username %}"> bgneal@312: <img src="{{ STATIC_URL }}icons/note.png" alt="PM" title="Send Private Message to {{ post.user.username }}" /></a> bgneal@329: {% if not post.user.user_profile.hide_email %}<a href="mailto:{{ post.user.email }}"> bgneal@312: <img src="{{ STATIC_URL }}icons/email.png" alt="Email" title="Send Email to {{ post.user.username}}" /></a>{% endif %} bgneal@121: </p> bgneal@121: {% endif %} bgneal@89: </td> bgneal@89: <td class="forum-post-body"> bgneal@329: <div class="forum-post-info quiet{% if post.user.user_profile.is_stranger %} stranger{% endif %}"> bgneal@312: {% if post.unread %}<img src="{{ STATIC_URL }}icons/new.png" alt="New" title="New" />{% endif %} bgneal@312: <a href="{{ post.get_absolute_url }}"><img src="{{ STATIC_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> bgneal@120: Posted on {% forum_date post.creation_date user %} bgneal@310: {% if can_moderate %}from IP: <a href="{% url 'forums-post_ip_info' post.id %}">{{ post.user_ip }}</a>{% endif %} bgneal@89: </div> bgneal@89: <div class="forum-post-body"> bgneal@89: {{ post.html|safe }} bgneal@329: {% if post.user.user_profile.signature_html %} bgneal@329: —{{ post.user.user_profile.signature_html|safe }} bgneal@121: {% endif %} bgneal@113: {% if post.has_been_edited %} bgneal@106: <p class="small quiet">Last edited: {{ post.update_date|date:"M d, Y H:i:s" }}</p> bgneal@113: {% endif %} bgneal@89: </div> bgneal@285: {% if post.attach_list %} bgneal@285: <div> bgneal@285: {% for item in post.attach_list %} bgneal@285: <div class="forum-attachment">{{ item.html|safe }}</div> bgneal@285: {% endfor %} bgneal@285: </div> bgneal@285: {% endif %} bgneal@98: <div class="forum-post-info-tools"> bgneal@343: <a href="#top" class="quiet" title="Goto the top of the page">Top</a> bgneal@108: {% if can_reply %} bgneal@312: <a href="{% url 'forums-new_post' topic_id=post.topic.id %}?quote={{ post.id }}"><img src="{{ STATIC_URL }}icons/comment.png" alt="Reply with quote" title="Reply with quote" /></a> bgneal@108: {% endif %} bgneal@312: {% post_edit_button post user can_moderate %} bgneal@98: <a href="#" class="post-flag" id="fp-{{ post.id }}" bgneal@98: title="Flag this post as spam, abuse, or a violation of site rules."> bgneal@312: <img src="{{ STATIC_URL }}icons/flag_red.png" alt="Flag" /></a> bgneal@106: {% if can_moderate %} bgneal@107: <a href="#" class="post-delete" id="dp-{{ post.id }}" bgneal@312: title="Delete this post"><img src="{{ STATIC_URL }}icons/cross.png" alt="Delete post" /></a> bgneal@329: {% if post.user != user and post.user.user_profile.is_stranger %} bgneal@215: <br /> bgneal@215: <span class="quiet">Stranger options:</span> bgneal@310: <a href="{% url 'forums-stranger' post.id %}" title="This stranger seems legitimate"> bgneal@312: <img src="{{ STATIC_URL }}icons/tick.png" alt="Acquaintance" /></a> bgneal@310: <a href="{% url 'forums-spammer' post.id %}" title="This is spam"> bgneal@312: <img src="{{ STATIC_URL }}icons/exclamation.png" alt="Spammer" /></a> bgneal@212: {% endif %} bgneal@105: {% endif %} bgneal@98: </div> bgneal@89: </td> bgneal@89: </tr>