Mercurial > public > sg101
comparison gpp/templates/forums/display_post.html @ 215:8c1832b9d815
Implement #84; additional checks on spammers; implement stranger status.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 29 May 2010 04:51:28 +0000 |
parents | fad7548b7f6e |
children | fe900598f81c |
comparison
equal
deleted
inserted
replaced
214:28988cce138b | 215:8c1832b9d815 |
---|---|
21 <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email to {{ post.user.username}}" /></a>{% endif %} | 21 <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email to {{ post.user.username}}" /></a>{% endif %} |
22 </p> | 22 </p> |
23 {% endif %} | 23 {% endif %} |
24 </td> | 24 </td> |
25 <td class="forum-post-body"> | 25 <td class="forum-post-body"> |
26 <div class="forum-post-info quiet"> | 26 <div class="forum-post-info quiet{% if post.user_profile.is_stranger %} stranger{% endif %}"> |
27 {% if post.unread %}<img src="{{ MEDIA_URL }}icons/new.png" alt="New" title="New" />{% endif %} | 27 {% if post.unread %}<img src="{{ MEDIA_URL }}icons/new.png" alt="New" title="New" />{% endif %} |
28 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> | 28 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> |
29 Posted on {% forum_date post.creation_date user %} | 29 Posted on {% forum_date post.creation_date user %} |
30 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %} | 30 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %} |
31 </div> | 31 </div> |
47 title="Flag this post as spam, abuse, or a violation of site rules."> | 47 title="Flag this post as spam, abuse, or a violation of site rules."> |
48 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a> | 48 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a> |
49 {% if can_moderate %} | 49 {% if can_moderate %} |
50 <a href="#" class="post-delete" id="dp-{{ post.id }}" | 50 <a href="#" class="post-delete" id="dp-{{ post.id }}" |
51 title="Delete this post"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" /></a> | 51 title="Delete this post"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" /></a> |
52 {% if post.user != user %} | 52 {% if post.user != user and post.user_profile.is_stranger %} |
53 <br /> | |
54 <span class="quiet">Stranger options:</span> | |
55 <a href="{% url forums-stranger post.id %}" title="This stranger seems legitimate"> | |
56 <img src="{{ MEDIA_URL }}icons/tick.png" alt="Acquaintance" /></a> | |
53 <a href="{% url forums-spammer post.id %}" title="This is spam"> | 57 <a href="{% url forums-spammer post.id %}" title="This is spam"> |
54 <img src="{{ MEDIA_URL }}icons/exclamation.png" alt="Spammer" /></a> | 58 <img src="{{ MEDIA_URL }}icons/exclamation.png" alt="Spammer" /></a> |
55 {% endif %} | 59 {% endif %} |
56 {% endif %} | 60 {% endif %} |
57 </div> | 61 </div> |