summaryrefslogtreecommitdiff
path: root/objectapp/templates/objectapp/tags/recent_comments.html
blob: 58907d814825e70405e112cab03fff3b8a71266b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% load i18n %}

<ul>
  {% for comment in comments %}
  <li>
    {% with comment.content_object as gbobject %}
    {{ comment.user_name }} {% trans "in" %}
    <a href="{{ gbobject.get_absolute_url }}#comment_{{ comment.pk }}" 
       title="{% trans "Comment on" %} {{ gbobject.title }}">
      {{ gbobject.title }}
    </a>
    {% endwith %}
  </li>
  {% empty %}
  <li>
    {% trans "No comments yet." %}
  </li>  
  {% endfor %}
</ul>