From 1ea700b294025e118fa3c48c0fbf2b63dc106597 Mon Sep 17 00:00:00 2001 From: Tom Willemsen Date: Tue, 13 Mar 2012 00:31:43 +0100 Subject: Add simple comments --- templates/aggregator/post_detail.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'templates/aggregator/post_detail.html') diff --git a/templates/aggregator/post_detail.html b/templates/aggregator/post_detail.html index eb39f95..574d9b1 100644 --- a/templates/aggregator/post_detail.html +++ b/templates/aggregator/post_detail.html @@ -1,8 +1,20 @@ {% extends "aggregator/base.html" %} +{% load comments %} + +{% block head %} + +{% endblock %} {% block content %} {% include "aggregator/post_content.html" with post=object %} +{% get_comment_count for object as comment_count %} +{% if comment_count > 0 %} + {% render_comment_list for object %} +{% endif %} + +{% render_comment_form for object %} +
{% with next=object.get_next_by_updated previous=object.get_previous_by_updated %} {% if previous %} -- cgit v1.2.3-54-g00ecf