summaryrefslogtreecommitdiff
path: root/gstudio/templates/admin/gstudio/widgets/_recent_linkbacks.html
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/templates/admin/gstudio/widgets/_recent_linkbacks.html')
-rw-r--r--gstudio/templates/admin/gstudio/widgets/_recent_linkbacks.html31
1 files changed, 31 insertions, 0 deletions
diff --git a/gstudio/templates/admin/gstudio/widgets/_recent_linkbacks.html b/gstudio/templates/admin/gstudio/widgets/_recent_linkbacks.html
new file mode 100644
index 0000000..57437da
--- /dev/null
+++ b/gstudio/templates/admin/gstudio/widgets/_recent_linkbacks.html
@@ -0,0 +1,31 @@
+{% load i18n %}
+
+{% for linkback in linkbacks %}
+<tr>
+ <th>
+ {% with linkback.content_object as nodetype %}
+ <a href="{{ linkback.url }}">{{ linkback.user_name }}</a>
+ {% trans "made a linkback on" %}
+ <a href="{{ nodetype.get_absolute_url }}#{{ linkback.flags.all.0.flag }}_{{ linkback.pk }}"
+ title="{{ nodetype.title }}">
+ {{ nodetype.title }}
+ </a>
+ {% endwith %}
+ {{ linkback.comment|truncatewords:20|linebreaks }}
+ </th>
+ <td>
+ <a href="{% url admin:comments_comment_change linkback.pk %}"
+ title="{% trans "Edit the linkback" %}" class="changelink">
+ {% trans "Edit" %}
+ </a>
+ </td>
+</tr>
+{% empty %}
+<tr>
+ <th colspan="2">
+ {% trans "No linkbacks yet." %}
+ </th>
+</tr>
+{% endfor %}
+
+