Sha256: 6381c5a98db702d19c2cc6d62d102a0c2d0f8d45f5fe1aeff16e2bb1dcbe92fe

Contents?: true

Size: 1004 Bytes

Versions: 7

Compression:

Stored size: 1004 Bytes

Contents

.block#block-text
  .content
    %h2.title= "Databag: #{@databag_name}"
    .inner
      = partial('item_navigation', :active => 'show')
    .content
      .inner
        %table.table
          %tr
            %th.first{:colspan => 2} Databag Items
            %th  
            %th.last  
            - @databag.sort.each_with_index do |databag_item_uri, index|
              %tr{:class => "#{index % 2 == 1 ? 'odd' : 'even'}"}
                %td{:colspan => 2}= link_to databag_item_uri[0], slice_url(:databag_databag_item, :id => databag_item_uri[0], :databag_id => @databag_name)
                %td
                  = link_to('Edit', slice_url(:edit_databag_databag_item, :id => databag_item_uri[0], :databag_id => @databag_name)) 
                  |
                  = link_to('Delete', slice_url(:databag_databag_item, :id => databag_item_uri[0], :databag_id => @databag_name), :method => "delete", :confirm => "Really delete Databag Item #{databag_item_uri[0]}?  There is no undo.")

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chef-server-webui-0.8.16 app/views/databags/show.html.haml
chef-server-webui-0.8.14 app/views/databags/show.html.haml
chef-server-webui-0.8.10 app/views/databags/show.html.haml
chef-server-webui-0.8.8 app/views/databags/show.html.haml
chef-server-webui-0.8.6 app/views/databags/show.html.haml
chef-server-webui-0.8.4 app/views/databags/show.html.haml
chef-server-webui-0.8.2 app/views/databags/show.html.haml