chef-server-webui 10.14.0.beta.3 → 10.14.0.rc.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/cookbooks.rb +6 -1
- data/app/controllers/users.rb +1 -0
- data/app/views/clients/index.html.haml +1 -1
- data/app/views/cookbooks/index.html.haml +1 -1
- data/app/views/databags/index.html.haml +1 -1
- data/app/views/environments/index.html.haml +1 -1
- data/app/views/nodes/index.html.haml +1 -1
- data/app/views/roles/index.html.haml +1 -1
- data/app/views/users/index.html.haml +1 -1
- data/lib/chef-server-webui/version.rb +1 -1
- metadata +5 -5
@@ -151,7 +151,12 @@ class Cookbooks < Application
|
|
151
151
|
when "plain"
|
152
152
|
show_plain_file(url)
|
153
153
|
else
|
154
|
-
|
154
|
+
begin
|
155
|
+
syntax_highlight(url)
|
156
|
+
rescue
|
157
|
+
Chef::Log.error("Error while parsing file #{url}")
|
158
|
+
show_plain_file(url)
|
159
|
+
end
|
155
160
|
end
|
156
161
|
end
|
157
162
|
|
data/app/controllers/users.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
%th
|
12
12
|
%th.last
|
13
13
|
- even = false;
|
14
|
-
- @clients_list.each do |client|
|
14
|
+
- @clients_list.sort_by {|value| value.downcase}.each do |client|
|
15
15
|
%tr{ :class => even ? "even" : "odd" }
|
16
16
|
%td{:colspan => 2}= link_to(client, url(:client, client))
|
17
17
|
%td
|
@@ -12,7 +12,7 @@
|
|
12
12
|
%th
|
13
13
|
%th.last
|
14
14
|
%tbody
|
15
|
-
- @databags.
|
15
|
+
- @databags.sort_by {|key, value| value.downcase}.each_with_index do |databag, index|
|
16
16
|
%tr{:class => "#{index % 2 == 1 ? 'odd' : 'even'}"}
|
17
17
|
%td{:colspan => 2}= link_to databag[0], url(:databag, { :id => databag[0] })
|
18
18
|
%td
|
@@ -11,7 +11,7 @@
|
|
11
11
|
%th
|
12
12
|
%th.last
|
13
13
|
- even = false;
|
14
|
-
- @environment_list.each do |env|
|
14
|
+
- @environment_list.sort_by {|key,value| key.downcase}.each do |env|
|
15
15
|
%tr{ :class => even ? "even" : "odd" }
|
16
16
|
%td{:colspan => 2}= link_to(env[0], url(:environment, env[0]))
|
17
17
|
%td
|
@@ -18,7 +18,7 @@
|
|
18
18
|
- else
|
19
19
|
%td{:colspan => 4}= "You have no nodes - try connecting one, or creating or editing a #{link_to('node', url(:nodes))}"
|
20
20
|
- else
|
21
|
-
- @node_list.each do |node|
|
21
|
+
- @node_list.sort_by {|value| value.downcase}.each do |node|
|
22
22
|
%tr{:class => even ? "even": "odd" }
|
23
23
|
%td{:colspan => 2}= link_to node, url(:node, { :id => node } )
|
24
24
|
%td
|
@@ -11,7 +11,7 @@
|
|
11
11
|
%th
|
12
12
|
%th.last
|
13
13
|
- even = false
|
14
|
-
- @users.
|
14
|
+
- @users.sort_by {|key,value| key.downcase}.each do |user, user_url|
|
15
15
|
%tr{:class => even ? "even": "odd" }
|
16
16
|
%td{:colspan => 2}= link_to user, url(:users_show, :user_id => user)
|
17
17
|
%td
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chef-server-webui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: -2959492522
|
5
5
|
prerelease: 8
|
6
6
|
segments:
|
7
7
|
- 10
|
8
8
|
- 14
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
-
|
12
|
-
version: 10.14.0.
|
10
|
+
- rc
|
11
|
+
- 0
|
12
|
+
version: 10.14.0.rc.0
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Opscode
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2012-
|
20
|
+
date: 2012-08-21 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|