aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/photos
diff options
context:
space:
mode:
authorbnewbold <bnewbold@manus.(none)>2007-02-24 21:26:12 -0800
committerbnewbold <bnewbold@manus.(none)>2007-02-24 21:26:12 -0800
commitba3cdfee16ca65da218c7a9724b6d3a7a770fc81 (patch)
tree80aabd842f4e12a22ed9592ebfdf103481a76973 /bn_django/photos
parentcfeab0aadf7ba357a997c4a0203bcf4176ecc0d3 (diff)
downloadbnewnet-ba3cdfee16ca65da218c7a9724b6d3a7a770fc81.tar.gz
bnewnet-ba3cdfee16ca65da218c7a9724b6d3a7a770fc81.zip
work on integrating comments universally
Diffstat (limited to 'bn_django/photos')
-rw-r--r--bn_django/photos/templates/photos/photo_detail.html20
1 files changed, 20 insertions, 0 deletions
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 %}
<p>This is not the photo you are looking for.</p>
{% endif %}
+{% endblock %}
+{% block commentary %}
+<div class="content" id="commentary">
+{% load comments %}
+{% if user.is_authenticated %}
+{% comment_form for photos.photo photo.id with is_public yes %}
+comment form:<br />
+{% include "comments/form.html" %}
+{% else %}
+{% free_comment_form for photos.photo photo.id with is_public yes %}
+free comment form:<br />
+{% include "comments/freeform.html" %}
+{% endif %}
+
+comment list:<br />
+{% 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" %}
+</div>
{% endblock %}