The edit and destroy buttons weren't showing up on classes and groups
when they should have.

Reviewed-by: Nick Lewis

Signed-off-by: Matt Robinson <[email protected]>
---
Local-branch: ticket/next/5866
 app/views/node_classes/show.html.haml |    2 +-
 app/views/node_groups/show.html.haml  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/views/node_classes/show.html.haml 
b/app/views/node_classes/show.html.haml
index 7e5359e..c15a44d 100644
--- a/app/views/node_classes/show.html.haml
+++ b/app/views/node_classes/show.html.haml
@@ -5,7 +5,7 @@
       Class:
       = @node_class.name
     %ul.actions
-      - if SETTINGS.enable_read_only_mode
+      - unless SETTINGS.enable_read_only_mode
         %li= link_to 'Edit', edit_node_class_path(@node_class), :class => 
"edit button"
         %li= link_to 'Destroy', @node_class, :confirm => 'Are you sure?', 
:method => :delete, :class => "delete button"
 
diff --git a/app/views/node_groups/show.html.haml 
b/app/views/node_groups/show.html.haml
index 5cd7b5a..7efd256 100644
--- a/app/views/node_groups/show.html.haml
+++ b/app/views/node_groups/show.html.haml
@@ -5,7 +5,7 @@
       Group:
       = @node_group.name
     %ul.actions
-      - if SETTINGS.enable_read_only_mode
+      - unless SETTINGS.enable_read_only_mode
         %li= link_to 'Edit', edit_node_group_path(@node_group), :class => 
"edit button", :rel => 'inspect'
         %li= link_to 'Destroy', @node_group, :confirm => 'Are you sure?', 
:method => :delete, :class => "delete button"
 
-- 
1.7.3.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.

Reply via email to