From 59ed461a5d6c6c2ee5e89bba01d3f40a5bbd78af Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 8 Mar 2023 15:54:35 +0000 Subject: [PATCH] Rework confirmations page to avoid raw html in translations --- app/views/confirmations/confirm.html.erb | 6 ++++-- config/locales/en.yml | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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: -- 2.43.2