[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
This commit is contained in:
Ridhwana 2020-10-14 16:04:23 +02:00 committed by GitHub
parent 4f79da26c3
commit bb6d450d4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,7 +9,7 @@
</a>
<% 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: "" } %>