Add body class to `account-created` route
This commit is contained in:
parent
0fcfc6bed9
commit
89e506551a
|
@ -471,6 +471,7 @@ class UsersController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def account_created
|
def account_created
|
||||||
|
@custom_body_class = "static-account-created"
|
||||||
@message = session['user_created_message'] || I18n.t('activation.missing_session')
|
@message = session['user_created_message'] || I18n.t('activation.missing_session')
|
||||||
expires_now
|
expires_now
|
||||||
render layout: 'no_ember'
|
render layout: 'no_ember'
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<%- end %>
|
<%- end %>
|
||||||
<%= yield(:no_ember_head) %>
|
<%= yield(:no_ember_head) %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body <% if @custom_body_class %>class="<%= @custom_body_class %>"<% end %>>
|
||||||
<%- unless customization_disabled? %>
|
<%- unless customization_disabled? %>
|
||||||
<%= SiteCustomization.custom_header(session[:preview_style], mobile_view? ? :mobile : :desktop) %>
|
<%= SiteCustomization.custom_header(session[:preview_style], mobile_view? ? :mobile : :desktop) %>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
|
|
Loading…
Reference in New Issue