Reviewed-By: Randall Hansen
Signed-off-by: Pieter van de Bruggen <[email protected]>
---
Local-branch: tickets/master/8196
app/views/layouts/application.html.haml | 1 +
app/views/shared/_node_manager_sidebar.html.haml | 2 ++
.../_node_manager_sidebar_for_type.html.haml | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/app/views/layouts/application.html.haml
b/app/views/layouts/application.html.haml
index 040f3a3..b357565 100644
--- a/app/views/layouts/application.html.haml
+++ b/app/views/layouts/application.html.haml
@@ -19,6 +19,7 @@
- add_body_class "#{controller.controller_name}_controller"
- add_body_class
"#{controller.controller_name}_#{controller.action_name}_action"
- add_body_class "#{controller.controller_name}_form_action" if %w[new
create edit update].include?(controller.action_name)
+ - add_body_class "no-sidebar" unless @body_classes.include?('with-sidebar')
%body{:class => @body_classes}
#wrap
#header
diff --git a/app/views/shared/_node_manager_sidebar.html.haml
b/app/views/shared/_node_manager_sidebar.html.haml
index 1ccb186..dd6ccce 100644
--- a/app/views/shared/_node_manager_sidebar.html.haml
+++ b/app/views/shared/_node_manager_sidebar.html.haml
@@ -1,3 +1,5 @@
+- add_body_class 'with-sidebar'
+
.group
%h3= link_to "Delayed Job Status", "/delayed_job_failures"
%h4= link_to "#{DelayedJobFailure.unread.count} unread failures",
"/delayed_job_failures"
diff --git a/app/views/shared/_node_manager_sidebar_for_type.html.haml
b/app/views/shared/_node_manager_sidebar_for_type.html.haml
index 147a72d..b7dd2e3 100644
--- a/app/views/shared/_node_manager_sidebar_for_type.html.haml
+++ b/app/views/shared/_node_manager_sidebar_for_type.html.haml
@@ -1,5 +1,6 @@
-# Render a sidebar section for a +type+ (e.g. NodeGroup or NodeClass).
+- add_body_class 'with-sidebar'
- table = type.name.tableize
- label = type.name.sub(/Node/, '')
- ivar = instance_variable_get "@#{table.singularize}"
--
1.7.5.1
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-dev?hl=en.