From: Andy Allan Date: Wed, 8 Mar 2023 15:54:35 +0000 (+0000) Subject: Rework confirmations page to avoid raw html in translations X-Git-Tag: live~1269^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/59ed461a5d6c6c2ee5e89bba01d3f40a5bbd78af?ds=sidebyside Rework confirmations page to avoid raw html in translations --- diff --git a/app/views/confirmations/confirm.html.erb b/app/views/confirmations/confirm.html.erb index 7350f8628..879fb8f33 100644 --- a/app/views/confirmations/confirm.html.erb +++ b/app/views/confirmations/confirm.html.erb @@ -27,6 +27,8 @@ -

<%= t ".reconfirm_html", - :reconfirm => url_for(:action => "confirm_resend") %>

+

+ <%= t ".resend_html", + :reconfirm_link => link_to(t(".click_here"), url_for(:action => "confirm_resend")) %> +

<% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 9df536c33..54404e583 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1636,7 +1636,8 @@ en: success: "Confirmed your account, thanks for signing up!" already active: "This account has already been confirmed." unknown token: "That confirmation code has expired or does not exist." - reconfirm_html: "If you need us to resend the confirmation email, click here." + resend_html: "If you need us to resend the confirmation email, %{reconfirm_link}." + click_here: click here confirm_resend: failure: "User %{name} not found." confirm_email: