summaryrefslogtreecommitdiff
path: root/chef-server/lib/views/search/show.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'chef-server/lib/views/search/show.html.haml')
-rw-r--r--chef-server/lib/views/search/show.html.haml13
1 files changed, 13 insertions, 0 deletions
diff --git a/chef-server/lib/views/search/show.html.haml b/chef-server/lib/views/search/show.html.haml
new file mode 100644
index 0000000000..5380a7477a
--- /dev/null
+++ b/chef-server/lib/views/search/show.html.haml
@@ -0,0 +1,13 @@
+%h1 Search Results
+.search
+ = partial(:search_form, :index_name => params[:id])
+.query
+ %h2= "Search Query was #{params[:q] ? params[:q] : '*'}"
+- @results.each do |result|
+ .search_result
+ %h3= "#{h result[:index_name]} (#{h result[:id]})"
+ %table
+ - result.each do |k, v|
+ %tr.attr_group
+ %td.attr_name= k
+ %td.attr_value= v.kind_of?(Array) ? v.join(",") : v \ No newline at end of file