aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/templates/newcomments_table
blob: 6c38d10e807b895a57f3276e5f2131792a5960b1 (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
<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>