From f607c7e7d713bc79c40523e0ed061c0ee1c3b3bb Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 31 Oct 2008 11:30:47 +0100 Subject: [PATCH] Move the comment display into it's own template. --- .../influences/influence_comments_block.html | 38 +++++++++++++++++++ .../influences/influence_detail_block.html | 35 +---------------- 2 files changed, 39 insertions(+), 34 deletions(-) create mode 100644 templates/influences/influence_comments_block.html diff --git a/templates/influences/influence_comments_block.html b/templates/influences/influence_comments_block.html new file mode 100644 index 0000000..255482a --- /dev/null +++ b/templates/influences/influence_comments_block.html @@ -0,0 +1,38 @@ +{% load i18n %} +{% load threadedcommentstags %} + +{% if comments %} + + + {% for comment in comments %} +
+ {{ comment.user }} said:
+ {% auto_transform_markup comment %} + +
+ +
+

{% trans "Cancel reply" %}

+ + {{ comment.reply_form.as_table }} +
+
+
+
+
+ {% endfor %} +{% else %} + {% trans "No comments were added yet" %} +{% endif %} diff --git a/templates/influences/influence_detail_block.html b/templates/influences/influence_detail_block.html index d60ac14..692d0b0 100644 --- a/templates/influences/influence_detail_block.html +++ b/templates/influences/influence_detail_block.html @@ -10,42 +10,9 @@ {% endif %}

{{ object.description }}

-

{% trans "Comments" %}

-{% if comments %} - {% for comment in comments %} -
- {{ comment.user }} said:
- {% auto_transform_markup comment %} - -
- -
-

{% trans "Cancel reply" %}

- - {{ comment.reply_form.as_table }} -
-
-
-
-
- {% endfor %} -{% else %} - {% trans "No comments were added yet" %} -{% endif %} +{% include "influences/influence_comments_block.html" %}
-- 2.30.2