summaryrefslogtreecommitdiff
path: root/gstudio/templates/admin/gstudio/widgets/_recent_linkbacks.html
blob: 57437da00c48cac6b2f42eb732b4a69ce42ec040 (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
{% 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 %}