diff --git a/app/presenters/travel_advice_presenter.rb b/app/presenters/travel_advice_presenter.rb index f398b0851..d680a5c50 100644 --- a/app/presenters/travel_advice_presenter.rb +++ b/app/presenters/travel_advice_presenter.rb @@ -82,14 +82,11 @@ def alert_status avoid_all_travel_to_whole_country ] alert_statuses = content_item["details"]["alert_status"] || [] - alert_statuses = alert_statuses.map do |alert| + alert_statuses.map do |alert| if allowed_statuses.include?(alert) - copy = I18n.t("travel_advice.alert_status.#{alert}_html").html_safe - view_context.tag.p(copy) + I18n.t("travel_advice.alert_status.#{alert}_html", country: country_name).html_safe end end - - alert_statuses.join("").html_safe end def atom_change_description diff --git a/app/views/content_items/travel_advice.html.erb b/app/views/content_items/travel_advice.html.erb index e2f211a62..72812eb9b 100644 --- a/app/views/content_items/travel_advice.html.erb +++ b/app/views/content_items/travel_advice.html.erb @@ -16,6 +16,15 @@