[Git][noosfero/noosfero][master] layout-helper: remove unnecessary spaces

Rodrigo Souto gitlab at mg.gitlab.com
Mon Mar 27 09:24:58 BRT 2017


Rodrigo Souto pushed to branch master at Noosfero / noosfero


Commits:
17b4341e by Rodrigo Souto at 2017-03-27T09:24:10-03:00
layout-helper: remove unnecessary spaces

- - - - -


1 changed file:

- app/helpers/layout_helper.rb


Changes:

=====================================
app/helpers/layout_helper.rb
=====================================
--- a/app/helpers/layout_helper.rb
+++ b/app/helpers/layout_helper.rb
@@ -3,10 +3,10 @@ module LayoutHelper
   def body_classes
     [
       (logged_in? ? " logged-in" : nil),
-      " controller-#{controller.controller_name}",
-      " action-#{controller.controller_name}-#{controller.action_name}",
-      " template-#{@layout_template || layout_template}",
-      (!profile.nil? && profile.is_on_homepage?(request.path, at page) ? " profile-homepage" : nil),
+      "controller-#{controller.controller_name}",
+      "action-#{controller.controller_name}-#{controller.action_name}",
+      "template-#{@layout_template || layout_template}",
+      (!profile.nil? && profile.is_on_homepage?(request.path, at page) ? "profile-homepage" : nil),
       profile.present? ? profile.kinds_style_classes : nil,
     ].compact.join(' ')
   end



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/17b4341ea57011b6fcc9b0d561a375f0d359c645
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170327/b234cc80/attachment-0001.html>


More information about the Noosfero-dev mailing list