summaryrefslogtreecommitdiff
path: root/gstudio/templates/admin/gstudio/widgets/_draft_nodetypes.html
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/templates/admin/gstudio/widgets/_draft_nodetypes.html')
-rw-r--r--gstudio/templates/admin/gstudio/widgets/_draft_nodetypes.html37
1 files changed, 37 insertions, 0 deletions
diff --git a/gstudio/templates/admin/gstudio/widgets/_draft_nodetypes.html b/gstudio/templates/admin/gstudio/widgets/_draft_nodetypes.html
new file mode 100644
index 0000000..4be2308
--- /dev/null
+++ b/gstudio/templates/admin/gstudio/widgets/_draft_nodetypes.html
@@ -0,0 +1,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 %}