diff --git a/ckanext/scheming_dcat/templates/admin/trash.html b/ckanext/scheming_dcat/templates/admin/trash.html new file mode 100644 index 00000000..2a402d04 --- /dev/null +++ b/ckanext/scheming_dcat/templates/admin/trash.html @@ -0,0 +1,38 @@ +{% ckan_extends %} + +{% block primary_content_inner %} +
+ {{ h.csrf_input() }} +
+ + + {{ _('Purge all') }} + +
+
+ +{% for ent_type, entities in data.items() %} + {% snippet "scheming_dcat/snippets/data_type.html", ent_type=ent_type, entities=entities, messages=messages %} +{% endfor %} +{% endblock %} + +{% block secondary_content %} +
+

+ + {{ _("Trash") }} +

+
+

+ {% trans %} + Purge deleted datasets, organizations or groups forever and irreversibly. + {% endtrans %} +

+
+
+{% endblock %} \ No newline at end of file diff --git a/ckanext/scheming_dcat/templates/scheming_dcat/snippets/data_type.html b/ckanext/scheming_dcat/templates/scheming_dcat/snippets/data_type.html new file mode 100644 index 00000000..49cd43e2 --- /dev/null +++ b/ckanext/scheming_dcat/templates/scheming_dcat/snippets/data_type.html @@ -0,0 +1,63 @@ + + + +
+ {% set truncate = truncate or 180 %} + {% set truncate_title = truncate_title or 80 %} + + + + {% if entities.first() %} +
+ + + {{ _('Purge') }} + +
+ {% endif %} +
\ No newline at end of file