diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2020-07-31 12:53:56 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2020-07-31 12:53:56 -0700 |
commit | 31f59b4b0ba7ff95b685c8826a7d019fb142f65c (patch) | |
tree | 221ec7bd8d77bddb2dec344c19253cca65156911 /python | |
parent | 81c031ec822aece655104cf545a556ce72d7cd73 (diff) | |
download | fatcat-31f59b4b0ba7ff95b685c8826a7d019fb142f65c.tar.gz fatcat-31f59b4b0ba7ff95b685c8826a7d019fb142f65c.zip |
web: add links to deletion pages from edit pages
Diffstat (limited to 'python')
-rw-r--r-- | python/fatcat_web/templates/container_edit.html | 3 | ||||
-rw-r--r-- | python/fatcat_web/templates/entity_edit_toml.html | 4 | ||||
-rw-r--r-- | python/fatcat_web/templates/file_edit.html | 3 | ||||
-rw-r--r-- | python/fatcat_web/templates/release_edit.html | 3 |
4 files changed, 13 insertions, 0 deletions
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</a> to access all metadata fields in a raw format. + {% if not editgroup %} + You can also <a href="/container/{{ existing_ident }}/delete">delete this entity</a>. + {% endif %} {% endblock %} <p>See <a href="https://guide.fatcat.wiki/entity_container.html">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 @@ <h1 class="ui header">Edit Entity (TOML mode)</h1> <form class="ui form" id="edit_toml_form" method="POST" action="{% if editgroup and editgroup.editgroup_id %}/editgroup/{{ editgroup.editgroup_id }}{% endif %}/{{ entity_type }}/{{ existing_ident }}/edit/toml"> + + {% if not editgroup %} + <p>You can also <a href="/{{ entity_type }}/{{ existing_ident }}/delete">delete this entity</a>. + {% endif %} {% endblock %} <p>See <a href="https://guide.fatcat.wiki/entity_release.html">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</a> to access all metadata fields in a raw format. + {% if not editgroup %} + You can also <a href="/file/{{ existing_ident }}/delete">delete this entity</a>. + {% endif %} {% endblock %} <p>See <a href="https://guide.fatcat.wiki/entity_file.html">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</a> to access all metadata fields in a raw format. + {% if not editgroup %} + You can also <a href="/release/{{ existing_ident }}/delete">delete this entity</a>. + {% endif %} {% endblock %} <p>See <a href="https://guide.fatcat.wiki/entity_release.html">the catalog |