diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2022-02-16 20:04:58 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2022-03-09 16:09:51 -0800 |
commit | 7f6a03c31d2bae482896243e7468bc1290b1678b (patch) | |
tree | 2ebdd47624ce812b9d88fabbbfccce3ceaf956d2 /python/fatcat_web/templates/editgroup_view.html | |
parent | e4cbe43692a9c26911ea54ee88d7df0980e1d9fe (diff) | |
download | fatcat-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.html | 5 |
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() }}"/> |