blob: bb19910629d605a23577db0703835eb2664ff5cb (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{% load i18n gstudio_tags %}
{% for comment in comments %}
<tr>
<th>
<img src="{% get_gravatar comment.email 40 "G" %}"
class="gravatar photo" alt="{{ comment.user_name }}" />
</th>
<td>
{% with comment.content_object as nodetype %}
<strong>{{ comment.user_name }}</strong> {% trans "in" %}
<strong>
<a href="{{ nodetype.get_absolute_url }}#comment_{{ comment.pk }}"
title="{% trans "Comment on" %} {{ nodetype.title }}">
{{ nodetype.title }}
</a>
</strong>
{% endwith %}
{{ comment.comment|truncatewords:20|linebreaks }}
</td>
<td>
<a href="{% url admin:comments_comment_change comment.pk %}"
title="{% trans "Edit the comment" %}" class="changelink">
{% trans "Edit" %}
</a>
</td>
</tr>
{% empty %}
<tr>
<th colspan="3">
{% trans "No comments yet." %}
</th>
</tr>
{% endfor %}
{% if comments %}
<tr>
<th colspan="3">
<a href="{% url admin:comments_comment_changelist %}"
title="{% trans "Manage the comments" %}" class="managelink">
{% trans "Manage the comments" %}
</a>
</th>
</tr>
{% endif %}
|