diff options
Diffstat (limited to 'bn_django/templates/comment_list')
-rw-r--r-- | bn_django/templates/comment_list | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/bn_django/templates/comment_list b/bn_django/templates/comment_list index 8ed411d..ce3ad19 100644 --- a/bn_django/templates/comment_list +++ b/bn_django/templates/comment_list @@ -1,13 +1,33 @@ - {% if comments %} +<br /> <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> + Posted by <span class="comment_user">{{ c.user }}</span><br /> + on <span class="comment_date"> + {{ c.submit_date|date:"F j, Y" }}</span><br /> + at <span class="comment_time">{{ c.submit_date|date:"H:i T" }}</span> </td><td class="comment_content"> + {% if c.headline %} <span class="comment_headline">{{ c.headline|escape|wordwrap:80 }}</span> - <span class="comment_content">{{ c.content|escape|wordwrap:80 }}</span> + <br /> + {% endif %} + <span class="comment_content">{{ c.comment|escape|wordwrap:80 }}</span> +</td</tr> +{% endfor %} +{% for c in free_comments %} +<tr><td class="comment_info"> + Posted by <span class="comment_user"> + {% if c.user %}{{ c.user }}{% else %}anonymous{% endif %}</span><br /> + on <span class="comment_date"> + {{ c.submit_date|date:"F j, Y" }}</span><br /> + at <span class="comment_time">{{ c.submit_date|date:"H:i T" }}</span> + </td><td class="comment_content"> + {% if c.headline %} + <span class="comment_headline">{{ c.headline|escape|wordwrap:80 }}</span> + <br /> + {% endif %} + <span class="comment_content">{{ c.comment|escape|wordwrap:80 }}</span> </td</tr> {% endfor %} </table> |