summaryrefslogtreecommitdiff
path: root/chef-server-webui/app/views/search/show.html.haml
blob: f20f9fa2ea0225d71b6f136109204e34ef9e6550 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.block#block-tables
  .content
    %h2.title Search Results
    .inner
      - @results.each do |result|
        %table.table.search{:width => '400px'}
          %tr
            %th.first Attribute
            %th.last Value
          - @results.each do |result|
            - result.sort { |a,b| a[0].to_s <=> b[0].to_s}.each_with_index do |h,index|
              %tr{:class => "#{index % 2 == 1 ? 'odd' : 'even'}"}
                %td= "#{h[0]} (#{h[1].class})"
                %td= h[1]