Fixed redaction link in browse/history page

This commit is contained in:
Matt Amos 2012-04-02 12:48:52 +01:00 committed by Tom Hughes
parent d50b0fb978
commit ac0603d055
4 changed files with 5 additions and 4 deletions

View file

@ -1,5 +1,5 @@
<% if node_details.redacted? %>
<p><%= raw t 'browse.redacted.message', :type => t('browse.redacted.type.node'), :redaction_link => link_to(node_details.redaction) %></p>
<p><%= raw t 'browse.redacted.message', :type => t('browse.redacted.type.node'), :redaction_link => link_to(t('browse.redacted.redaction', :id => node_details.redaction.id), node_details.redaction), :version => node_details.version %></p>
<% else %>
<table class="browse_details" id="<%= node_details.version %>">

View file

@ -1,5 +1,5 @@
<% if relation_details.redacted? %>
<p><%= raw t 'browse.redacted.message', :type => t('browse.redacted.type.relation'), :redaction_link => link_to(relation_details.redaction) %></p>
<p><%= raw t 'browse.redacted.message', :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 %>">

View file

@ -1,5 +1,5 @@
<% if way_details.redacted? %>
<p><%= raw t 'browse.redacted.message', :type => t('browse.redacted.type.way'), :redaction_link => link_to(way_details.redaction) %></p>
<p><%= raw t 'browse.redacted.message', :type => t('browse.redacted.type.way'), :redaction_link => link_to(t('browse.redacted.redaction', :id => way_details.redaction.id), way_details.redaction), :version => way_details.version %></p>
<% else %>
<table class="browse_details" id="<%= way_details.version %>">

View file

@ -196,7 +196,8 @@ en:
showing_page: "Showing page"
of: "of"
redacted:
message: "This %{type} version cannot be shown as it has been redacted. Please see %{redaction_link} for details."
redaction: "Redaction %{id}"
message: "Version %{version} of this %{type} cannot be shown as it has been redacted. Please see %{redaction_link} for details."
type:
node: "node"
way: "way"