Add body class to account-created route

This commit is contained in:
Robin Ward 2016-05-05 14:37:09 -04:00
parent 0fcfc6bed9
commit 89e506551a
No known key found for this signature in database
GPG Key ID: 0E091E2B4ED1B83D
2 changed files with 2 additions and 1 deletions

View File

@ -471,6 +471,7 @@ class UsersController < ApplicationController
end
def account_created
@custom_body_class = "static-account-created"
@message = session['user_created_message'] || I18n.t('activation.missing_session')
expires_now
render layout: 'no_ember'

View File

@ -14,7 +14,7 @@
<%- end %>
<%= yield(:no_ember_head) %>
</head>
<body>
<body <% if @custom_body_class %>class="<%= @custom_body_class %>"<% end %>>
<%- unless customization_disabled? %>
<%= SiteCustomization.custom_header(session[:preview_style], mobile_view? ? :mobile : :desktop) %>
<%- end %>