aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/templates/newcomments_table
diff options
context:
space:
mode:
Diffstat (limited to 'bn_django/templates/newcomments_table')
-rw-r--r--bn_django/templates/newcomments_table26
1 files changed, 26 insertions, 0 deletions
diff --git a/bn_django/templates/newcomments_table b/bn_django/templates/newcomments_table
new file mode 100644
index 0000000..6c38d10
--- /dev/null
+++ b/bn_django/templates/newcomments_table
@@ -0,0 +1,26 @@
+<table class="listing">
+{% for c in latest_comments %}
+<tr>
+ <td class="date">
+ {{ c.submit_date|date:"F jS" }}</td>
+ <td class="description">
+ {% if c.user.username %}{{ c.user.username }}
+ {% else %}anonymous{% endif%} </td>
+ <td class="description">
+ <a href="{{c.get_content_object.get_absolute_url}}">
+ {{ c.content_type.name }}</a></td>
+ </tr>
+{% endfor %}
+{% for c in latest_freecomments %}
+<tr>
+ <td class="date">
+ {{ c.submit_date|date:"F jS" }}</td>
+ <td class="description">
+ {% if c.person_name %}{{c.person_name}}{% else %}anonymous{% endif %}
+ </td>
+ <td class="description">
+ <a href="{{c.get_content_object.get_absolute_url}}">
+ {{ c.content_type.name }}</a></td>
+ </tr>
+{% endfor %}
+</table>