]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/browse/_relation_details.html.erb
Present links at the bottom of data browser pages in a consistent way
[rails.git] / app / views / browse / _relation_details.html.erb
index e52c9981f016846837f4a9e5ad1b5873216d9d93..57314817dd7b4d860ff1ac5d2c427212fda2e60f 100644 (file)
@@ -1,4 +1,7 @@
-<table>
+<% if relation_details.redacted? %>
+<p><%= t 'browse.redacted.message_html', :type => t('browse.redacted.type.relation'), :redaction_link => link_to(t('browse.redacted.redaction', :id => relation_details.redaction.id), relation_details.redaction), :version => relation_details.version %></p>
+<% else %>
+<table class="browse_details" id="<%= relation_details.version %>">
 
   <%= render :partial => "common_details", :object => relation_details %>
 
@@ -25,3 +28,4 @@
   <% end %>
 
 </table>
+<% end %>