summaryrefslogtreecommitdiff
path: root/objectapp/templates/admin/objectapp/widgets/_draft_gbobjects.html
blob: ea7fca930b8c599e576cdd317c1047a27c8fed61 (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
{% load i18n objectapp_tags %}

{% for gbobject in gbobjects %}
<tr>
  <th>
    <a href="{% url admin:objectapp_gbobject_change gbobject.pk %}"
       title="{% trans "Edit the gbobject" %}">
      {{ gbobject.title }}
    </a>
    {% trans "on" %}
    <abbr>{{ gbobject.creation_date|date:"DATE_FORMAT" }}</abbr>
    {{ gbobject.html_content|truncatewords_html:20|safe }}
  </th>
  <td>
    <a href="{{ gbobject.get_absolute_url }}" class="previewlink">
      {% trans "Preview" %}
    </a>
  </td>
</tr>
{% empty %}
<tr>
  <th colspan="2">
    {% trans "No draft gbobjects." %}
  </th>
</tr>
{% endfor %}

{% if gbobjects %}
<tr>
  <th colspan="2">
    <a href="{% url admin:objectapp_gbobject_changelist %}?status__exact=0"
       title="{% trans "View all draft gbobjects" %}" class="managelink">
      {% trans "View all draft gbobjects" %}
    </a>
  </th>
</tr>
{% endif %}