aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/templates/comment_list
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/templates/comment_list')
-rw-r--r--bn_django/templates/comment_list16
1 files changed, 16 insertions, 0 deletions
diff --git a/bn_django/templates/comment_list b/bn_django/templates/comment_list
new file mode 100644
index 0000000..8ed411d
--- /dev/null
+++ b/bn_django/templates/comment_list
@@ -0,0 +1,16 @@
+
+{% if comments %}
+<table class="comments">
+{% for c in comments %}
+<tr><td class="comment_info">
+ <span class="comment_user">{{ c.user }}</span>
+ <span class="comment_date">{{ c.submit_date }}</span>
+ </td><td class="comment_content">
+ <span class="comment_headline">{{ c.headline|escape|wordwrap:80 }}</span>
+ <span class="comment_content">{{ c.content|escape|wordwrap:80 }}</span>
+</td</tr>
+{% endfor %}
+</table>
+{% else %}
+<h3>No comments yet!</h3>
+{% endif %}