diff --git a/app/helpers/layout_helper.rb b/app/helpers/layout_helper.rb index f6739df..64d0541 100644 --- a/app/helpers/layout_helper.rb +++ b/app/helpers/layout_helper.rb @@ -2,8 +2,8 @@ module LayoutHelper def body_classes # Identify the current controller and action for the CSS: - " controller-#{@controller.controller_name}" + - " action-#{@controller.controller_name}-#{@controller.action_name}" + + " controller-#{controller.controller_name}" + + " action-#{controller.controller_name}-#{controller.action_name}" + " template-#{@layout_template || if profile.blank? then 'default' else profile.layout_template end}" + (!profile.nil? && profile.is_on_homepage?(request.path,@page) ? " profile-homepage" : "") end -- libgit2 0.21.2