Browse files

Enable project-specific css #1017

  • Loading branch information...
1 parent d3d6a93 commit 2f21522458b9a5a347285bcff986b00da56edcc2 @thegcat thegcat committed Jun 21, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 app/helpers/application_helper.rb
View
1 app/helpers/application_helper.rb
@@ -436,6 +436,7 @@ def body_css_classes
css << 'theme-' + theme.name
end
+ css << 'project-' + @project.id.to_s if @project.present?
css << 'controller-' + params[:controller] if params[:controller]
css << 'action-' + params[:action] if params[:action]
css.join(' ')

0 comments on commit 2f21522

Please sign in to comment.