summaryrefslogtreecommitdiff
path: root/objectapp/templates/objectapp/tags/recent_comments.html
diff options
context:
space:
mode:
Diffstat (limited to 'objectapp/templates/objectapp/tags/recent_comments.html')
-rw-r--r--objectapp/templates/objectapp/tags/recent_comments.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/objectapp/templates/objectapp/tags/recent_comments.html b/objectapp/templates/objectapp/tags/recent_comments.html
new file mode 100644
index 0000000..58907d8
--- /dev/null
+++ b/objectapp/templates/objectapp/tags/recent_comments.html
@@ -0,0 +1,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>
+