summaryrefslogtreecommitdiff
path: root/gstudio/templates/gstudio/tags/recent_comments.html
diff options
context:
space:
mode:
authorgnowgi <nagarjun@gnowledge.org>2012-03-15 16:19:20 +0530
committergnowgi <nagarjun@gnowledge.org>2012-03-15 16:19:20 +0530
commit7a4f561e851fdc7246d804c3abb6748b8a4199a6 (patch)
treed2afc3463fd49625a9be482012f5c3bfcf7c42b9 /gstudio/templates/gstudio/tags/recent_comments.html
downloadgnowsys-7a4f561e851fdc7246d804c3abb6748b8a4199a6.tar.gz
master trunk of gnowsys-studio
Diffstat (limited to 'gstudio/templates/gstudio/tags/recent_comments.html')
-rw-r--r--gstudio/templates/gstudio/tags/recent_comments.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/gstudio/templates/gstudio/tags/recent_comments.html b/gstudio/templates/gstudio/tags/recent_comments.html
new file mode 100644
index 0000000..9e87c6f
--- /dev/null
+++ b/gstudio/templates/gstudio/tags/recent_comments.html
@@ -0,0 +1,20 @@
+{% load i18n %}
+
+<ul>
+ {% for comment in comments %}
+ <li>
+ {% with comment.content_object as nodetype %}
+ {{ comment.user_name }} {% trans "on" %}
+ <a href="{{ nodetype.get_absolute_url }}#comment_{{ comment.pk }}"
+ title="{% trans "Comment on" %} {{ nodetype.title }}">
+ {{ nodetype.title }}
+ </a>
+ {% endwith %}
+ </li>
+ {% empty %}
+ <li>
+ {% trans "No comments yet." %}
+ </li>
+ {% endfor %}
+</ul>
+