Skip to content

Commit 8defcd0

Browse files
author
AJ Christensen
committed
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.
1 parent c4bb9cd commit 8defcd0

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
.edit_area#node{:to_update => node.name}
2-
%h2 Recipes
3-
%ol
4-
= recipe_list(node)
5-
%h2 Attributes
6-
%ol
7-
= attribute_list(node)
1+
- if session[:level] == :admin
2+
.edit_area#node{:to_update => node.name}
3+
%h2 Recipes
4+
%ol
5+
= recipe_list(node)
6+
%h2 Attributes
7+
%ol
8+
= attribute_list(node)
9+
- else
10+
#node
11+
%h2 Recipes
12+
%ol
13+
= recipe_list(node)
14+
%h2 Attributes
15+
%ol
16+
= attribute_list(node)

0 commit comments

Comments
 (0)