Sha256: 2f734d0b2c4a05df4624de0cec5f87ae8a6ca576a157fbf03a619fc223c87484

Contents?: true

Size: 1.29 KB

Versions: 11

Compression:

Stored size: 1.29 KB

Contents

.block#block-tables
  .content
    %h2.title Registrations
    .inner
      %table.table
        %tr
          %th.first Registration Name
          %th &nbsp
          %th Control
          %th.last  
          - @registered_nodes.sort{ |a,b| a.name.to_s <=> b.name.to_s }.each_with_index do |node, index|
            %tr{:class => "#{index % 2 == 1 ? 'odd' : 'even'}"}
              %td{:colspan => 2}= link_to(node.name, slice_url(:registration, { :id => node.name }))
              %td
                = link_to( (node.validated ? "Invalidate Registration" : "Validate Registration"), slice_url( :validate_registration, { :id => node.name} ), :method => "post", :confirm => "Are you sure you want to"  + (node.validated  ?  " invalidate " : " validate ") + "this node's registration?")
                |
                = link_to((node.admin ? "Remove Admin Rights" : "Grant Admin Rights"), slice_url(:admin_registration, { :id => node.name}), :method => "post", :confirm => "Are you sure you want to"  + (node.admin ? " remove administrator privileges from this node?" : " grant administrator privileges to this node?"))
                |
                = link_to("Delete", slice_url(:registration, { :id => node.name} ), :method => "delete", :confirm => "Are you sure you want to delete this registration")

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
chef-server-webui-0.8.16 app/views/openid_register/index.html.haml
chef-server-webui-0.8.14 app/views/openid_register/index.html.haml
chef-server-webui-0.8.10 app/views/openid_register/index.html.haml
chef-server-webui-0.8.8 app/views/openid_register/index.html.haml
chef-server-webui-0.8.6 app/views/openid_register/index.html.haml
chef-server-webui-0.8.4 app/views/openid_register/index.html.haml
chef-server-webui-0.8.2 app/views/openid_register/index.html.haml
chef-server-slice-0.7.16 app/views/openid_register/index.html.haml
chef-server-slice-0.7.14 app/views/openid_register/index.html.haml
chef-server-slice-0.7.12 app/views/openid_register/index.html.haml
chef-server-slice-0.7.10 app/views/openid_register/index.html.haml