Don't link to xml download from redacted element versions

This commit is contained in:
Anton Khorev 2024-01-17 19:57:49 +03:00
parent 88e72be5b1
commit 7c55a5cb3b
6 changed files with 51 additions and 9 deletions

View file

@ -4,6 +4,8 @@
<%= render :partial => "browse/node", :object => @feature %>
<div class='secondary-actions'>
<%= link_to t("browse.download_xml"), node_version_path(*@feature.id) %>
</div>
<% unless @feature.redacted? %>
<div class='secondary-actions'>
<%= link_to t("browse.download_xml"), node_version_path(*@feature.id) %>
</div>
<% end %>