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@117
|
9 Posts: {{ post.user_profile.forum_post_count }}<br />
|
bgneal@121
|
10 {% if post.user_profile.location %}
|
bgneal@117
|
11 Location: {{ post.user_profile.location }}<br />
|
bgneal@121
|
12 {% endif %}
|
bgneal@204
|
13 {% for bo in post.user_profile.badge_ownership %}
|
bgneal@204
|
14 <img src="{{ bo.badge.image.url }}" alt="{{ bo.badge_count_str }}" title="{{ bo.badge_count_str }}" />
|
bgneal@204
|
15 {% endfor %}
|
bgneal@121
|
16 {% if user.is_authenticated %}
|
bgneal@121
|
17 <p>
|
bgneal@121
|
18 <a href="{% url messages-compose_to post.user.username %}">
|
bgneal@121
|
19 <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send Private Message to {{ post.user.username }}" /></a>
|
bgneal@121
|
20 {% if not post.user_profile.hide_email %}<a href="mailto:{{ post.user.email }}">
|
bgneal@121
|
21 <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email to {{ post.user.username}}" /></a>{% endif %}
|
bgneal@121
|
22 </p>
|
bgneal@121
|
23 {% endif %}
|
bgneal@89
|
24 </td>
|
bgneal@89
|
25 <td class="forum-post-body">
|
bgneal@215
|
26 <div class="forum-post-info quiet{% if post.user_profile.is_stranger %} stranger{% endif %}">
|
bgneal@114
|
27 {% if post.unread %}<img src="{{ MEDIA_URL }}icons/new.png" alt="New" title="New" />{% endif %}
|
bgneal@98
|
28 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a>
|
bgneal@120
|
29 Posted on {% forum_date post.creation_date user %}
|
bgneal@216
|
30 {% if can_moderate %}from IP: <a href="{% url forums-post_ip_info post.id %}">{{ post.user_ip }}</a>{% endif %}
|
bgneal@89
|
31 </div>
|
bgneal@89
|
32 <div class="forum-post-body">
|
bgneal@89
|
33 {{ post.html|safe }}
|
bgneal@121
|
34 {% if post.user_profile.signature_html %}
|
bgneal@121
|
35 —{{ post.user_profile.signature_html|safe }}
|
bgneal@121
|
36 {% endif %}
|
bgneal@113
|
37 {% if post.has_been_edited %}
|
bgneal@106
|
38 <p class="small quiet">Last edited: {{ post.update_date|date:"M d, Y H:i:s" }}</p>
|
bgneal@113
|
39 {% endif %}
|
bgneal@89
|
40 </div>
|
bgneal@98
|
41 <div class="forum-post-info-tools">
|
bgneal@108
|
42 {% if can_reply %}
|
bgneal@108
|
43 <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
|
44 {% endif %}
|
bgneal@105
|
45 {% post_edit_button post user can_moderate MEDIA_URL %}
|
bgneal@98
|
46 <a href="#" class="post-flag" id="fp-{{ post.id }}"
|
bgneal@98
|
47 title="Flag this post as spam, abuse, or a violation of site rules.">
|
bgneal@98
|
48 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a>
|
bgneal@106
|
49 {% if can_moderate %}
|
bgneal@107
|
50 <a href="#" class="post-delete" id="dp-{{ post.id }}"
|
bgneal@107
|
51 title="Delete this post"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" /></a>
|
bgneal@215
|
52 {% if post.user != user and post.user_profile.is_stranger %}
|
bgneal@215
|
53 <br />
|
bgneal@215
|
54 <span class="quiet">Stranger options:</span>
|
bgneal@215
|
55 <a href="{% url forums-stranger post.id %}" title="This stranger seems legitimate">
|
bgneal@215
|
56 <img src="{{ MEDIA_URL }}icons/tick.png" alt="Acquaintance" /></a>
|
bgneal@212
|
57 <a href="{% url forums-spammer post.id %}" title="This is spam">
|
bgneal@212
|
58 <img src="{{ MEDIA_URL }}icons/exclamation.png" alt="Spammer" /></a>
|
bgneal@212
|
59 {% endif %}
|
bgneal@105
|
60 {% endif %}
|
bgneal@98
|
61 </div>
|
bgneal@89
|
62 </td>
|
bgneal@89
|
63 </tr>
|