aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/templates/newcomments_table
blob: c01863d3b46f4c90bd727e4627b01674f14a0951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<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 %}{{c.user_name}}{% endif%} </td>
    <td class="description">
        {{ c.comment|truncatewords:10 }}
    <td class="description">
        <a href="{{c.get_content_object_url}}">
        {{ c.content_type.name }}</a></td>
        </tr>
{% endfor %}
</table>