From ba3cdfee16ca65da218c7a9724b6d3a7a770fc81 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Sat, 24 Feb 2007 21:26:12 -0800 Subject: work on integrating comments universally --- bn_django/photos/templates/photos/photo_detail.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'bn_django/photos/templates') diff --git a/bn_django/photos/templates/photos/photo_detail.html b/bn_django/photos/templates/photos/photo_detail.html index 10bf8ba..0d5398d 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 %} {{ block.super }} @@ -94,6 +95,25 @@ {% else %}

This is not the photo you are looking for.

{% endif %} +{% endblock %} +{% block commentary %} +
+{% load comments %} +{% if user.is_authenticated %} +{% comment_form for photos.photo photo.id with is_public yes %} +comment form:
+{% include "comments/form.html" %} +{% else %} +{% free_comment_form for photos.photo photo.id with is_public yes %} +free comment form:
+{% include "comments/freeform.html" %} +{% 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 %} +{% include "comment_list" %} +
{% endblock %} -- cgit v1.2.3