Added tests for browsing object histories with redacted elements

This commit is contained in:
Matt Amos 2012-03-29 17:07:24 +01:00 committed by Tom Hughes
parent e01a309970
commit 9c098816e5
5 changed files with 63 additions and 0 deletions

View file

@ -1,3 +1,6 @@
<% if node_details.redacted? %>
<p><%= raw t 'browse.redacted.message', :type => t('browse.redacted.type.node'), :redaction_link => link_to(node_details.redaction) %></p>
<% else %>
<table class="browse_details" id="<%= node_details.version %>">
<%= render :partial => "common_details", :object => node_details %>
@ -22,3 +25,4 @@
<% end %>
</table>
<% end %>

View file

@ -1,3 +1,6 @@
<% if relation_details.redacted? %>
<p><%= raw t 'browse.redacted.message', :type => t('browse.redacted.type.relation'), :redaction_link => link_to(relation_details.redaction) %></p>
<% else %>
<table class="browse_details" id="<%= relation_details.version %>">
<%= render :partial => "common_details", :object => relation_details %>
@ -25,3 +28,4 @@
<% end %>
</table>
<% end %>

View file

@ -1,3 +1,6 @@
<% if way_details.redacted? %>
<p><%= raw t 'browse.redacted.message', :type => t('browse.redacted.type.way'), :redaction_link => link_to(way_details.redaction) %></p>
<% else %>
<table class="browse_details" id="<%= way_details.version %>">
<%= render :partial => "common_details", :object => way_details %>
@ -33,3 +36,4 @@
<% end %>
</table>
<% end %>