From 89e506551adc29187e1c5cfcd95214cc02cf22cd Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 5 May 2016 14:37:09 -0400 Subject: [PATCH] Add body class to `account-created` route --- app/controllers/users_controller.rb | 1 + app/views/layouts/no_ember.html.erb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 0e3967a6b30..719dcf37aa2 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -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' diff --git a/app/views/layouts/no_ember.html.erb b/app/views/layouts/no_ember.html.erb index fe12e2df93e..70ea347560f 100644 --- a/app/views/layouts/no_ember.html.erb +++ b/app/views/layouts/no_ember.html.erb @@ -14,7 +14,7 @@ <%- end %> <%= yield(:no_ember_head) %> - +class="<%= @custom_body_class %>"<% end %>> <%- unless customization_disabled? %> <%= SiteCustomization.custom_header(session[:preview_style], mobile_view? ? :mobile : :desktop) %> <%- end %>