Prefer using _html locale keys to the raw function
8 files changed, 4 lines added, 4 lines removed
Changes
--- app/views/browse/_node_details.html.erb 0093db5ffba2c05c5f48824531cd72130b0ba5b1
+++ app/views/browse/_node_details.html.erb ec1667fc093976cb9a69e5aba675ee4281d7ff64
@@ -1,5 +1,5 @@
-<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>+<p><%= t 'browse.redacted.message_html', :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>--- app/views/browse/_relation_details.html.erb 0093db5ffba2c05c5f48824531cd72130b0ba5b1
+++ app/views/browse/_relation_details.html.erb ec1667fc093976cb9a69e5aba675ee4281d7ff64
@@ -1,5 +1,5 @@
-<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>+<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>--- app/views/browse/_way_details.html.erb 0093db5ffba2c05c5f48824531cd72130b0ba5b1
+++ app/views/browse/_way_details.html.erb ec1667fc093976cb9a69e5aba675ee4281d7ff64
@@ -1,5 +1,5 @@
-<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>+<p><%= t 'browse.redacted.message_html', :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>--- config/locales/en.yml 0093db5ffba2c05c5f48824531cd72130b0ba5b1
+++ config/locales/en.yml ec1667fc093976cb9a69e5aba675ee4281d7ff64
@@ -197,7 +197,7 @@
- message: "Version %{version} of this %{type} cannot be shown as it has been redacted. Please see %{redaction_link} for details."+ message_html: "Version %{version} of this %{type} cannot be shown as it has been redacted. Please see %{redaction_link} for details."