diff options
Diffstat (limited to 'bn_django/photos')
-rw-r--r-- | bn_django/photos/templates/photos/photo_detail.html | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/bn_django/photos/templates/photos/photo_detail.html b/bn_django/photos/templates/photos/photo_detail.html index 5d02710..1278bda 100644 --- a/bn_django/photos/templates/photos/photo_detail.html +++ b/bn_django/photos/templates/photos/photo_detail.html @@ -1,5 +1,6 @@ {% extends "photos/base.html" %} {# {% load markup %} #} + {% load comments %} {% block path %} @@ -101,17 +102,10 @@ by {{ object.photographer }}.</p> {% endblock %} {% block commentary %} -<div class="content" id="commentary"> -{% load comments %} +<div class='content' id='commentary'> <h3>Post a comment</h3> -{% if user.is_authenticated %} -{% comment_form for photos.photo object.id with is_public true %} -{% else %} -{% free_comment_form for photos.photo object.id with is_public true %} -{% endif %} -<br /> -{% get_comment_list for photos.photo object.id as comments %} -{% get_free_comment_list for photos.photo object.id as free_comments %} +{% render_comment_form for object %} +{% get_comment_list for object as comments %} {% include "comment_list" %} </div> {% endblock %} |