aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/editgroup_view.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-02-16 20:04:58 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-03-09 16:09:51 -0800
commit7f6a03c31d2bae482896243e7468bc1290b1678b (patch)
tree2ebdd47624ce812b9d88fabbbfccce3ceaf956d2 /python/fatcat_web/templates/editgroup_view.html
parente4cbe43692a9c26911ea54ee88d7df0980e1d9fe (diff)
downloadfatcat-7f6a03c31d2bae482896243e7468bc1290b1678b.tar.gz
fatcat-7f6a03c31d2bae482896243e7468bc1290b1678b.zip
web editing: fix links between edit tabs for re-editing behavior
Diffstat (limited to 'python/fatcat_web/templates/editgroup_view.html')
-rw-r--r--python/fatcat_web/templates/editgroup_view.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/editgroup_view.html b/python/fatcat_web/templates/editgroup_view.html
index 0142a46b..cdbde277 100644
--- a/python/fatcat_web/templates/editgroup_view.html
+++ b/python/fatcat_web/templates/editgroup_view.html
@@ -6,7 +6,10 @@
<a href="/editgroup/{{ editgroup.editgroup_id }}/{{ entity_type }}/{{ edit.ident }}">[view]</a>
<a href="/editgroup/{{ editgroup.editgroup_id }}/diff#{{ entity_type }}_{{ edit.ident }}">[diff]</a>
{% if auth_to.edit and not editgroup.changelog_index and not editgroup.submitted %}
- <br><a href="/editgroup/{{ editgroup.editgroup_id }}/{{ entity_type }}/{{ edit.ident }}/edit" style="color: green;">[re-edit]</a>
+ {% if edit.revision or edit.redirect_ident %}
+ {# show re-edit, unless this is a "deleted" edit #}
+ <br><a href="/editgroup/{{ editgroup.editgroup_id }}/{{ entity_type }}/{{ edit.ident }}/edit" style="color: green;">[re-edit]</a>
+ {% endif %}
<br>
<form id="submit_edit_delete" method="POST" action="/editgroup/{{ editgroup.editgroup_id }}/{{ entity_type }}/edit/{{ edit.edit_id }}/delete" style="display:inline;">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>