From: Matthijs Kooijman Date: Fri, 31 Oct 2008 10:30:47 +0000 (+0100) Subject: Move the comment display into it's own template. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=f607c7e7d713bc79c40523e0ed061c0ee1c3b3bb;p=matthijs%2Fprojects%2Fxerxes.git Move the comment display into it's own template. --- 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" %}