]> git.openstreetmap.org Git - rails.git/commitdiff
Fixed redaction link in browse/history page
authorMatt Amos <zerebubuth@gmail.com>
Mon, 2 Apr 2012 11:48:52 +0000 (12:48 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 5 Apr 2012 12:50:20 +0000 (13:50 +0100)
app/views/browse/_node_details.html.erb
app/views/browse/_relation_details.html.erb
app/views/browse/_way_details.html.erb
config/locales/en.yml

index 45b830f0472120b03a2c2cfc4f4b0d19f4b4ad5d..7bbd750c9f0607a8ac7f1f6d9f22c5eba4026016 100644 (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 %>">
 
index 25b5f0fcabb526a1c845a994afa27edb87f7ec81..cfa03678f944b385f22816f93c0bdbd4c9de456c 100644 (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 %>">
 
index 7a3a2a1462ff2d6ebf6d0ac4d07d05b9b22e85ff..4d07be8c90c6e288b0990994b5024aebc3a6a91a 100644 (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 %>">
 
index 32ce54e6f65ce6bf6baafd81fee95a6d1d93faf2..f909f1e5cc338e4f3a243a1ed2c1496001533d16 100644 (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"