comparison gpp/templates/forums/display_post.html @ 106:cb72577785df

Forums: implemented the edit post function.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Sep 2009 21:49:56 +0000
parents 08ddfd835305
children e94398f5e027
comparison
equal deleted inserted replaced
105:08ddfd835305 106:cb72577785df
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 %}
21 <p class="small quiet">Last edited: {{ post.update_date|date:"M d, Y H:i:s" }}</p>
22 {% endifnotequal %}
20 </div> 23 </div>
21 <div class="forum-post-info-tools"> 24 <div class="forum-post-info-tools">
22 <a href=""><img src="{{ MEDIA_URL }}icons/comment.png" alt="Reply with quote" title="Reply with quote" /></a> 25 <a href=""><img src="{{ MEDIA_URL }}icons/comment.png" alt="Reply with quote" title="Reply with quote" /></a>
23 {% post_edit_button post user can_moderate MEDIA_URL %} 26 {% post_edit_button post user can_moderate MEDIA_URL %}
24 {% if can_moderate %}
25 <a href="#" class="post-flag" id="fp-{{ post.id }}" 27 <a href="#" class="post-flag" id="fp-{{ post.id }}"
26 title="Flag this post as spam, abuse, or a violation of site rules."> 28 title="Flag this post as spam, abuse, or a violation of site rules.">
27 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a> 29 <img src="{{ MEDIA_URL }}icons/flag_red.png" alt="Flag" /></a>
30 {% if can_moderate %}
28 <a href=""><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" title="Delete post" /></a> 31 <a href=""><img src="{{ MEDIA_URL }}icons/cross.png" alt="Delete post" title="Delete post" /></a>
29 {% endif %} 32 {% endif %}
30 </div> 33 </div>
31 </td> 34 </td>
32 </tr> 35 </tr>