Added tests for browsing object histories with redacted elements
This commit is contained in:
parent
e01a309970
commit
9c098816e5
5 changed files with 63 additions and 0 deletions
|
@ -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 %>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue