From b148bab8f549792f19ae0256c00c282f29e061dc Mon Sep 17 00:00:00 2001 From: bnewbold Date: Wed, 7 Mar 2007 01:09:52 -0800 Subject: much work; comments working for photos, static content moved, more --- bn_django/photos/templates/photos/photo_detail.html | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'bn_django/photos') diff --git a/bn_django/photos/templates/photos/photo_detail.html b/bn_django/photos/templates/photos/photo_detail.html index 0d5398d..9a7c290 100644 --- a/bn_django/photos/templates/photos/photo_detail.html +++ b/bn_django/photos/templates/photos/photo_detail.html @@ -100,20 +100,15 @@ {% block commentary %}
{% load comments %} - +

Post a comment

{% if user.is_authenticated %} -{% comment_form for photos.photo photo.id with is_public yes %} -comment form:
-{% include "comments/form.html" %} +{% comment_form for photos.photo object.id with is_public yes %} {% else %} -{% free_comment_form for photos.photo photo.id with is_public yes %} -free comment form:
-{% include "comments/freeform.html" %} +{% free_comment_form for photos.photo object.id with is_public yes %} {% endif %} - -comment list:
-{% get_comment_list for photos.photo photo.id as comments %} -{% get_free_comment_list for photos.photo photo.id as free_comments %} +
+{% get_comment_list for photos.photo object.id as comments %} +{% get_free_comment_list for photos.photo object.id as free_comments %} {% include "comment_list" %}
{% endblock %} -- cgit v1.2.3