From bb6d450d4b77c43bd3b5b09b1491f941dd00b964 Mon Sep 17 00:00:00 2001 From: Ridhwana Date: Wed, 14 Oct 2020 16:04:23 +0200 Subject: [PATCH] [deploy] Fix ui for signup with email (#10841) * fix: add html_safe so that it will render it as html * fix: use html_safe so that it will render the svg as safe html --- .../shared/authentication/_providers_registration_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/authentication/_providers_registration_form.html.erb b/app/views/shared/authentication/_providers_registration_form.html.erb index 68d8bc5cf..f4d4d4a58 100644 --- a/app/views/shared/authentication/_providers_registration_form.html.erb +++ b/app/views/shared/authentication/_providers_registration_form.html.erb @@ -9,7 +9,7 @@ <% end %> <% if params[:state] == "new-user" && SiteConfig.allow_email_password_registration %> - <%= link_to "#{inline_svg_tag('email.svg', aria: true, class: 'crayons-icon', title: 'email')}Sign up with Email", + <%= link_to "#{inline_svg_tag('email.svg', aria: true, class: 'crayons-icon', title: 'email')}Sign up with Email".html_safe, request.params.merge(state: "email_signup"), class: "crayons-btn crayons-btn--l crayons-btn--brand-email crayons-btn--icon-left whitespace-nowrap", data: { no_instant: "" } %>