Don't link to self from element version pages

This commit is contained in:
Anton Khorev 2024-01-17 03:34:42 +03:00
parent 81c11988f5
commit 3a5c729865
4 changed files with 10 additions and 1 deletions

View file

@ -1,6 +1,6 @@
<h4>
<%= t "browse.version" %>
#<%= link_to common_details.version, :controller => "old_#{@type.pluralize}", :action => :show, :version => common_details.version %>
#<%= link_to_unless_current common_details.version, :controller => "old_#{@type.pluralize}", :action => :show, :version => common_details.version %>
</h4>
<p class="fst-italic">