summaryrefslogtreecommitdiff
path: root/gstudio/templates/admin/gstudio/widgets/_draft_nodetypes.html
blob: 4be2308179574b475d95315deb40cb420d5fff12 (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 gstudio_tags %}

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

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