chef-server-webui 0.10.0.beta.10 → 0.10.0.rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -252,7 +252,7 @@ class Application < Merb::Controller
252
252
  #for showing search result
253
253
  def determine_name(type, object)
254
254
  case type
255
- when :node, :role, :client
255
+ when :node, :role, :client, :environment
256
256
  object.name
257
257
  else
258
258
  params[:id]
@@ -260,7 +260,7 @@ class Application < Merb::Controller
260
260
  end
261
261
 
262
262
  def list_available_recipes_for(environment)
263
- Chef::Environment.load_filtered_recipe_list(environment)
263
+ Chef::Environment.load_filtered_recipe_list(environment).sort!
264
264
  end
265
265
 
266
266
  def convert_newline_to_br(string)
@@ -40,7 +40,7 @@ class Search < Application
40
40
  @s = Chef::Search::Query.new
41
41
  query = (params[:q].nil? || params[:q].empty?) ? "*:*" : URI.escape(params[:q], Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
42
42
  @results = @s.search(params[:id], query)
43
- @type = if params[:id].to_s == "node" || params[:id].to_s == "role" || params[:id].to_s == "client"
43
+ @type = if params[:id].to_s == "node" || params[:id].to_s == "role" || params[:id].to_s == "client" || params[:id].to_s == "environment"
44
44
  params[:id]
45
45
  else
46
46
  "databag"
@@ -1,3 +1,3 @@
1
1
  module ChefServerWebui
2
- VERSION = '0.10.0.beta.10'
2
+ VERSION = '0.10.0.rc.0'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: chef-server-webui
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 7
5
- version: 0.10.0.beta.10
5
+ version: 0.10.0.rc.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Opscode
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-13 00:00:00 -07:00
13
+ date: 2011-04-15 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency