]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_common_details.html.erb
Don't link to self from element version pages
[rails.git] / app / views / browse / _common_details.html.erb
index fa8eeb3a5fef1da55fa28918c0678a637219b594..7d3f8e829c672d3bc0c05ebc1acaf178cfda4e73 100644 (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">