blob: dad1de54c207b2a16edc4784b235913bb809c3e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{% if comments or free_comments %}
{% comment %}TODO: this needs to be rewriten!{% endcomment %}
<br />
<table class="comments">
{% for c in comments %}
<tr><td class="comment_info">
Posted by <span class="comment_user">
{% if c.user.username %} {{ c.user.username }}
{% else %}{{ c.user_name }} {% 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 %}
{% for c in free_comments %}
<tr><td class="comment_info">
Posted by <span class="comment_user">
{% if c.person_name %}{{ c.person_name}}{% 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>
{% else %}
<h3>No comments yet!</h3>
{% endif %}
|