From 31f59b4b0ba7ff95b685c8826a7d019fb142f65c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 31 Jul 2020 12:53:56 -0700 Subject: web: add links to deletion pages from edit pages --- python/fatcat_web/templates/container_edit.html | 3 +++ python/fatcat_web/templates/entity_edit_toml.html | 4 ++++ python/fatcat_web/templates/file_edit.html | 3 +++ python/fatcat_web/templates/release_edit.html | 3 +++ 4 files changed, 13 insertions(+) diff --git a/python/fatcat_web/templates/container_edit.html b/python/fatcat_web/templates/container_edit.html index fd07b3da..99f77d53 100644 --- a/python/fatcat_web/templates/container_edit.html +++ b/python/fatcat_web/templates/container_edit.html @@ -12,6 +12,9 @@ %}/editgroup/{{ editgroup.editgroup_id }}{% endif %}/container/{{ existing_ident }}/edit/toml">TOML editing form to access all metadata fields in a raw format. + {% if not editgroup %} + You can also delete this entity. + {% endif %} {% endblock %}

See the catalog diff --git a/python/fatcat_web/templates/entity_edit_toml.html b/python/fatcat_web/templates/entity_edit_toml.html index 807e4d2b..64768d6e 100644 --- a/python/fatcat_web/templates/entity_edit_toml.html +++ b/python/fatcat_web/templates/entity_edit_toml.html @@ -7,6 +7,10 @@

Edit Entity (TOML mode)

+ + {% if not editgroup %} +

You can also delete this entity. + {% endif %} {% endblock %}

See the catalog diff --git a/python/fatcat_web/templates/file_edit.html b/python/fatcat_web/templates/file_edit.html index b7876fc5..745b0c41 100644 --- a/python/fatcat_web/templates/file_edit.html +++ b/python/fatcat_web/templates/file_edit.html @@ -12,6 +12,9 @@ %}/editgroup/{{ editgroup.editgroup_id }}{% endif %}/file/{{ existing_ident }}/edit/toml">TOML editing form to access all metadata fields in a raw format. + {% if not editgroup %} + You can also delete this entity. + {% endif %} {% endblock %}

See the catalog diff --git a/python/fatcat_web/templates/release_edit.html b/python/fatcat_web/templates/release_edit.html index 50f73b8c..c26c9850 100644 --- a/python/fatcat_web/templates/release_edit.html +++ b/python/fatcat_web/templates/release_edit.html @@ -12,6 +12,9 @@ %}/editgroup/{{ editgroup.editgroup_id }}{% endif %}/release/{{ existing_ident }}/edit/toml">TOML editing form to access all metadata fields in a raw format. + {% if not editgroup %} + You can also delete this entity. + {% endif %} {% endblock %}

See the catalog -- cgit v1.2.3