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   %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