Sha256: dbe8f79aa059c3dfb2c158427edd73fdb1f308b249e7a28fb2b7e1b043e249a7
Contents?: true
Size: 1.26 KB
Versions: 117
Compression:
Stored size: 1.26 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, url(:registration, { :id => node.name })) %td = link_to( (node.validated ? "Invalidate Registration" : "Validate Registration"), 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"), 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", url(:registration, { :id => node.name} ), :method => "delete", :confirm => "Are you sure you want to delete this registration")
Version data entries
117 entries across 117 versions & 1 rubygems