diff gpp/templates/forums/display_post.html @ 108:80ab249d1adc

Forums: quoting existing posts.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Sep 2009 03:55:50 +0000
parents e94398f5e027
children d97ceb95ce02
line wrap: on
line diff
--- a/gpp/templates/forums/display_post.html	Tue Sep 22 03:36:39 2009 +0000
+++ b/gpp/templates/forums/display_post.html	Sat Sep 26 03:55:50 2009 +0000
@@ -22,7 +22,9 @@
          {% endifnotequal %}
       </div>
       <div class="forum-post-info-tools">
-      <a href=""><img src="{{ MEDIA_URL }}icons/comment.png" alt="Reply with quote" title="Reply with quote" /></a>
+      {% if can_reply %}
+         <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>
+      {% endif %}
       {% post_edit_button post user can_moderate MEDIA_URL %}
       <a href="#" class="post-flag" id="fp-{{ post.id }}" 
          title="Flag this post as spam, abuse, or a violation of site rules.">