comparison gpp/templates/forums/display_post.html @ 113:d97ceb95ce02

Forums: ForumLastVisit logic in place. Need to add code for topics and posts next.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Oct 2009 19:10:54 +0000
parents 80ab249d1adc
children 535d02d1c017
comparison
equal deleted inserted replaced
112:d1b0b86441c0 113:d97ceb95ce02
15 Posted on {{ post.creation_date|date:"M d, Y H:i" }} 15 Posted on {{ post.creation_date|date:"M d, Y H:i" }}
16 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %} 16 {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %}
17 </div> 17 </div>
18 <div class="forum-post-body"> 18 <div class="forum-post-body">
19 {{ post.html|safe }} 19 {{ post.html|safe }}
20 {% ifnotequal post.creation_date post.update_date %} 20 {% if post.has_been_edited %}
21 <p>{{ post.creation_date|date:"M d, Y H:i:s" }} {{ post.update_date|date:"M d, Y H:i:s" }}</p>
21 <p class="small quiet">Last edited: {{ post.update_date|date:"M d, Y H:i:s" }}</p> 22 <p class="small quiet">Last edited: {{ post.update_date|date:"M d, Y H:i:s" }}</p>
22 {% endifnotequal %} 23 {% endif %}
23 </div> 24 </div>
24 <div class="forum-post-info-tools"> 25 <div class="forum-post-info-tools">
25 {% if can_reply %} 26 {% if can_reply %}
26 <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> 27 <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>
27 {% endif %} 28 {% endif %}