comparison gpp/templates/forums/display_post.html @ 312:88b2b9cb8c1f

Fixing #142; cut over to the django.contrib.staticfiles app.
author Brian Neal <bgneal@gmail.com>
date Thu, 27 Jan 2011 02:56:10 +0000
parents daa2916f5b34
children 000c006fee97
comparison
equal deleted inserted replaced
311:b1c39788e511 312:88b2b9cb8c1f
15 <img src="{{ bo.badge.image.url }}" alt="{{ bo.badge_count_str }}" title="{{ bo.badge_count_str }}" /> 15 <img src="{{ bo.badge.image.url }}" alt="{{ bo.badge_count_str }}" title="{{ bo.badge_count_str }}" />
16 {% endfor %} 16 {% endfor %}
17 {% if user.is_authenticated %} 17 {% if user.is_authenticated %}
18 <p> 18 <p>
19 <a href="{% url 'messages-compose_to' post.user.username %}"> 19 <a href="{% url 'messages-compose_to' post.user.username %}">
20 <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send Private Message to {{ post.user.username }}" /></a> 20 <img src="{{ STATIC_URL }}icons/note.png" alt="PM" title="Send Private Message to {{ post.user.username }}" /></a>
21 {% if not post.user_profile.hide_email %}<a href="mailto:{{ post.user.email }}"> 21 {% if not post.user_profile.hide_email %}<a href="mailto:{{ post.user.email }}">
22 <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email to {{ post.user.username}}" /></a>{% endif %} 22 <img src="{{ STATIC_URL }}icons/email.png" alt="Email" title="Send Email to {{ post.user.username}}" /></a>{% endif %}
23 </p> 23 </p>
24 {% endif %} 24 {% endif %}
25 </td> 25 </td>
26 <td class="forum-post-body"> 26 <td class="forum-post-body">
27 <div class="forum-post-info quiet{% if post.user_profile.is_stranger %} stranger{% endif %}"> 27 <div class="forum-post-info quiet{% if post.user_profile.is_stranger %} stranger{% endif %}">
28 {% if post.unread %}<img src="{{ MEDIA_URL }}icons/new.png" alt="New" title="New" />{% endif %} 28 {% if post.unread %}<img src="{{ STATIC_URL }}icons/new.png" alt="New" title="New" />{% endif %}
29 <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a> 29 <a href="{{ post.get_absolute_url }}"><img src="{{ STATIC_URL }}icons/link.png" alt="Link" title="Link to this post" /></a>
30 Posted on {% forum_date post.creation_date user %} 30 Posted on {% forum_date post.creation_date user %}
31 {% if can_moderate %}from IP: <a href="{% url 'forums-post_ip_info' post.id %}">{{ post.user_ip }}</a>{% endif %} 31 {% if can_moderate %}from IP: <a href="{% url 'forums-post_ip_info' post.id %}">{{ post.user_ip }}</a>{% endif %}
32 </div> 32 </div>
33 <div class="forum-post-body"> 33 <div class="forum-post-body">
34 {{ post.html|safe }} 34 {{ post.html|safe }}
46 {% endfor %} 46 {% endfor %}
47 </div> 47 </div>
48 {% endif %} 48 {% endif %}
49 <div class="forum-post-info-tools"> 49 <div class="forum-post-info-tools">
50 {% if can_reply %} 50 {% if can_reply %}
51 <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> 51 <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>
52 {% endif %} 52 {% endif %}
53 {% post_edit_button post user can_moderate MEDIA_URL %} 53 {% post_edit_button post user can_moderate %}
54 <a href="#" class="post-flag" id="fp-{{ post.id }}" 54 <a href="#" class="post-flag" id="fp-{{ post.id }}"
55 title="Flag this post as spam, abuse, or a violation of site rules."> 55 title="Flag this post as spam, abuse, or a violation of site rules.">
56 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a> 56 <img src="{{ STATIC_URL }}icons/flag_red.png" alt="Flag" /></a>
57 {% if can_moderate %} 57 {% if can_moderate %}
58 <a href="#" class="post-delete" id="dp-{{ post.id }}" 58 <a href="#" class="post-delete" id="dp-{{ post.id }}"
59 title="Delete this post"><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" /></a> 59 title="Delete this post"><img src="{{ STATIC_URL }}icons/cross.png" alt="Delete post" /></a>
60 {% if post.user != user and post.user_profile.is_stranger %} 60 {% if post.user != user and post.user_profile.is_stranger %}
61 <br /> 61 <br />
62 <span class="quiet">Stranger options:</span> 62 <span class="quiet">Stranger options:</span>
63 <a href="{% url 'forums-stranger' post.id %}" title="This stranger seems legitimate"> 63 <a href="{% url 'forums-stranger' post.id %}" title="This stranger seems legitimate">
64 <img src="{{ MEDIA_URL }}icons/tick.png" alt="Acquaintance" /></a> 64 <img src="{{ STATIC_URL }}icons/tick.png" alt="Acquaintance" /></a>
65 <a href="{% url 'forums-spammer' post.id %}" title="This is spam"> 65 <a href="{% url 'forums-spammer' post.id %}" title="This is spam">
66 <img src="{{ MEDIA_URL }}icons/exclamation.png" alt="Spammer" /></a> 66 <img src="{{ STATIC_URL }}icons/exclamation.png" alt="Spammer" /></a>
67 {% endif %} 67 {% endif %}
68 {% endif %} 68 {% endif %}
69 </div> 69 </div>
70 </td> 70 </td>
71 </tr> 71 </tr>