diff options
author | AJ Christensen <aj@junglist.gen.nz> | 2009-01-29 16:22:52 +1300 |
---|---|---|
committer | AJ Christensen <aj@junglist.gen.nz> | 2009-01-29 16:22:52 +1300 |
commit | 8defcd01d8acd03fc9c83a71bf99a5bf0ce76d8f (patch) | |
tree | 1135732524e6fc71ce602e517f78c5de4f475e58 /chef-server/lib | |
parent | c4bb9cd7ddc47d664ff388d2235ad3427020711a (diff) | |
download | chef-8defcd01d8acd03fc9c83a71bf99a5bf0ce76d8f.tar.gz |
Quick hack fix for CHEF-28
Make the div jEditable if you're an admin, otherwise just display 'em.
This whole page will be getting a rework soon, but this makes it a little less broken.
Diffstat (limited to 'chef-server/lib')
-rw-r--r-- | chef-server/lib/views/nodes/_node.html.haml | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/chef-server/lib/views/nodes/_node.html.haml b/chef-server/lib/views/nodes/_node.html.haml index 26419482e0..c5c73fbf66 100644 --- a/chef-server/lib/views/nodes/_node.html.haml +++ b/chef-server/lib/views/nodes/_node.html.haml @@ -1,7 +1,16 @@ -.edit_area#node{:to_update => node.name} - %h2 Recipes - %ol - = recipe_list(node) - %h2 Attributes - %ol - = attribute_list(node) +- if session[:level] == :admin + .edit_area#node{:to_update => node.name} + %h2 Recipes + %ol + = recipe_list(node) + %h2 Attributes + %ol + = attribute_list(node) +- else + #node + %h2 Recipes + %ol + = recipe_list(node) + %h2 Attributes + %ol + = attribute_list(node)
\ No newline at end of file |