diff --git a/app/helpers/layout_helper.rb b/app/helpers/layout_helper.rb index 17c33d7..4a223a5 100644 --- a/app/helpers/layout_helper.rb +++ b/app/helpers/layout_helper.rb @@ -1,5 +1,13 @@ 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}" + + " template-#{profile.nil? ? "default" : profile.layout_template}" + + (!profile.nil? && profile.is_on_homepage?(request.path,@page) ? " profile-homepage" : "") + end + def noosfero_javascript plugins_javascripts = @plugins.map { |plugin| plugin.js_files.map { |js| plugin.class.public_path(js) } }.flatten diff --git a/app/views/layouts/application-ng.rhtml b/app/views/layouts/application-ng.rhtml index 5afa648..8223602 100644 --- a/app/views/layouts/application-ng.rhtml +++ b/app/views/layouts/application-ng.rhtml @@ -18,15 +18,9 @@ end.join("\n") %> -
" > - + <%= _("Go to the content") %> + <%= @plugins.dispatch(:body_beginning).collect do |content| content.respond_to?(:call) ? content.call : content -- libgit2 0.21.2