chef-server-webui 0.9.18 → 0.10.0.beta.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +0 -4
- data/Rakefile +10 -0
- data/app/controllers/application.rb +34 -6
- data/app/controllers/cookbooks.rb +125 -35
- data/app/controllers/environments.rb +235 -0
- data/app/controllers/nodes.rb +26 -19
- data/app/controllers/roles.rb +37 -44
- data/app/controllers/search.rb +13 -13
- data/app/helpers/application_helper.rb +34 -0
- data/app/views/cookbooks/_cookbook_content.html.haml +7 -0
- data/app/views/cookbooks/index.html.haml +22 -7
- data/app/views/cookbooks/show.html.haml +8 -50
- data/app/views/environments/_form.html.erb +91 -0
- data/app/views/environments/_navigation.html.haml +9 -0
- data/app/views/environments/_version_selector.html.erb +8 -0
- data/app/views/environments/edit.html.erb +17 -0
- data/app/views/environments/index.html.haml +26 -0
- data/app/views/environments/new.html.erb +17 -0
- data/app/views/environments/show.html.haml +31 -0
- data/app/views/layout/application.html.haml +22 -13
- data/app/views/layout/login.html.haml +2 -2
- data/app/views/nodes/_form.html.erb +69 -0
- data/app/views/nodes/index.html.haml +6 -2
- data/app/views/nodes/show.html.haml +4 -1
- data/app/views/roles/_form.html.erb +92 -0
- data/app/views/roles/_run_lists.html.erb +26 -0
- data/app/views/roles/edit.html.haml +1 -1
- data/app/views/roles/new.html.haml +1 -1
- data/app/views/roles/show.html.haml +10 -7
- data/app/views/status/index.html.haml +2 -1
- data/bin/chef-server-webui +1 -0
- data/config/router.rb +14 -8
- data/lib/chef-server-webui/version.rb +1 -1
- data/public/javascripts/chef.js +206 -49
- data/public/javascripts/cookbook_constraint_ctrl.js +191 -0
- data/public/javascripts/cookbook_versions.js +75 -0
- data/public/javascripts/jquery-1.4.4.min.js +167 -0
- data/public/javascripts/jquery.suggest.js +250 -0
- data/public/stylesheets/base.css +30 -24
- data/public/stylesheets/chef.css +212 -45
- data/public/stylesheets/jquery.suggest.css +28 -0
- data/public/stylesheets/jsonedit_main.css +26 -10
- data/public/stylesheets/themes/djime-cerulean/style.css +31 -18
- metadata +22 -29
- data/app/controllers/cookbook_attributes.rb +0 -41
- data/app/controllers/cookbook_definitions.rb +0 -41
- data/app/controllers/cookbook_files.rb +0 -39
- data/app/controllers/cookbook_libraries.rb +0 -41
- data/app/controllers/cookbook_recipes.rb +0 -40
- data/app/controllers/cookbook_templates.rb +0 -57
- data/app/helpers/cookbook_attributes_helper.rb +0 -7
- data/app/helpers/cookbook_definitions_helper.rb +0 -8
- data/app/helpers/cookbook_files_helper.rb +0 -8
- data/app/helpers/cookbook_libraries_helper.rb +0 -7
- data/app/helpers/cookbook_recipes_helper.rb +0 -8
- data/app/helpers/cookbook_templates_helper.rb +0 -8
- data/app/helpers/exceptions_helper.rb +0 -6
- data/app/helpers/global_helpers.rb +0 -39
- data/app/helpers/nodes_helper.rb +0 -43
- data/app/helpers/openid_consumer_helper.rb +0 -8
- data/app/helpers/openid_register_helper.rb +0 -8
- data/app/helpers/openid_server_helper.rb +0 -6
- data/app/helpers/openid_server_helpers.rb +0 -32
- data/app/helpers/roles_helper.rb +0 -5
- data/app/helpers/search_entries_helper.rb +0 -8
- data/app/helpers/search_helper.rb +0 -44
- data/app/views/nodes/_form.html.haml +0 -52
- data/app/views/roles/_form.html.haml +0 -52
@@ -1,52 +0,0 @@
|
|
1
|
-
.content
|
2
|
-
.inner
|
3
|
-
- if form_for != "edit"
|
4
|
-
%div.group.form
|
5
|
-
%label.label Name
|
6
|
-
= text_field :id => "node_name", :name => "name", :class => "text_field", :value => params.has_key?(:name) ? h(params[:name]) : @node.name
|
7
|
-
%span.description The name of the Node
|
8
|
-
|
9
|
-
%div.group.form
|
10
|
-
%table.sortable
|
11
|
-
%tr
|
12
|
-
%td
|
13
|
-
%label.label Available Roles
|
14
|
-
%td
|
15
|
-
%label.label Run List
|
16
|
-
%tr
|
17
|
-
%td
|
18
|
-
%div.sortable
|
19
|
-
%ul#node_available_roles.connectedSortable
|
20
|
-
- @available_roles.each do |role|
|
21
|
-
%li{ :id => "role[#{role}]", :class => 'ui-state-highlight' }= h role
|
22
|
-
%td{:rowspan => 3}
|
23
|
-
%div.sortable.run-list
|
24
|
-
%ul#for_node.connectedSortable
|
25
|
-
- @run_list.each do |entry|
|
26
|
-
%li{ :id => h(entry.to_s), :class => entry.type == :role ? 'ui-state-highlight' : 'ui-state-default' }= h entry.name
|
27
|
-
%td.help
|
28
|
-
%span.description
|
29
|
-
Drag recipes from the list of Available Recipes section on the left, and drop them
|
30
|
-
in the "Recipes for this node" section on the right. Then sort the recipes for this node list to the order you would like to see the recipes applied.
|
31
|
-
%tr
|
32
|
-
%td
|
33
|
-
%label.label Available Recipes
|
34
|
-
%tr
|
35
|
-
%td
|
36
|
-
%div.sortable
|
37
|
-
%ul#node_available_recipes.connectedSortable
|
38
|
-
- @available_recipes.each do |recipe|
|
39
|
-
%li{ :id => "recipe[#{recipe}]",:title => recipe, :class => 'ui-state-default' }= h recipe
|
40
|
-
|
41
|
-
|
42
|
-
%div.group.form{:style => "position:relative;"}
|
43
|
-
%label.label Attributes
|
44
|
-
= partial 'layout/jsonedit', :json =>@node.normal_attrs.to_json
|
45
|
-
%div.group.form
|
46
|
-
%span.description A JSON hash for default attributes for nodes of this node. These attributes will only be applied if the node does not already have a value for the attributes.
|
47
|
-
|
48
|
-
= form(:action => form_url, :method => :post, :id => form_id, :class => 'form') do
|
49
|
-
%div.group
|
50
|
-
.actions-bar
|
51
|
-
.actions= submit submit_name, :id => submit_id, :class => 'button'
|
52
|
-
|
@@ -1,52 +0,0 @@
|
|
1
|
-
.content
|
2
|
-
.inner
|
3
|
-
- if form_for != "edit"
|
4
|
-
%div.group.form
|
5
|
-
%label.label Name
|
6
|
-
= text_field :id => "role_name", :name => "name", :class => "text_field", :value => params.has_key?(:name) ? h(params[:name]) : @role.name
|
7
|
-
%span.description The name of the Role
|
8
|
-
%div.group.form
|
9
|
-
%label.label Description
|
10
|
-
= text_area(params.has_key?(:description) ? h(params[:description]) : @role.description, :name => "description", :class => "text_area", :id => "role_description")
|
11
|
-
%span.description A description of this Role
|
12
|
-
|
13
|
-
%div.group.form
|
14
|
-
%table.sortable
|
15
|
-
%tr
|
16
|
-
%td
|
17
|
-
%label.label Available Roles
|
18
|
-
%td
|
19
|
-
%label.label Run List
|
20
|
-
%tr
|
21
|
-
%td
|
22
|
-
%div.sortable
|
23
|
-
%ul#node_available_roles.connectedSortable
|
24
|
-
- @available_roles.each do |role|
|
25
|
-
%li{ :id => "role[#{role}]", :class => 'ui-state-highlight' }= h role
|
26
|
-
%td{:rowspan => 3}
|
27
|
-
%div.sortable.run-list
|
28
|
-
%ul#for_role.connectedSortable
|
29
|
-
- @run_list.each do |entry|
|
30
|
-
%li{ :id => h(entry.to_s), :class => entry.type == 'role' ? 'ui-state-highlight' : 'ui-state-default' }= h entry.name
|
31
|
-
%td.help
|
32
|
-
%span.description
|
33
|
-
Drag recipes from the list of Available Recipes section on the left, and drop them
|
34
|
-
in the "Recipes for this node" section on the right. Then sort the recipes for this node list to the order you would like to see the recipes applied.
|
35
|
-
%tr
|
36
|
-
%td
|
37
|
-
%label.label Available Recipes
|
38
|
-
%tr
|
39
|
-
%td
|
40
|
-
%div.sortable
|
41
|
-
%ul#node_available_recipes.connectedSortable
|
42
|
-
- @available_recipes.each do |recipe|
|
43
|
-
%li{ :id => "recipe[#{recipe}]", :title => recipe, :class => 'ui-state-default' }= h recipe
|
44
|
-
|
45
|
-
%div.group.form{:style => "position:relative;"}
|
46
|
-
%label.label Default and Override Attributes
|
47
|
-
= partial 'layout/jsonedit', :json => { :defaults => @role.default_attributes, :overrides => @role.override_attributes }.to_json
|
48
|
-
%span.description A JSON hash for default attributes for nodes of this role. These attributes will only be applied if the node does not already have a value for the attributes.
|
49
|
-
= form(:action => form_url, :method => :post, :id => form_id, :class => 'form') do
|
50
|
-
%div.group
|
51
|
-
.actions-bar
|
52
|
-
.actions= submit submit_name, :id => submit_id, :class => 'button'
|