<commit_before>.block#block-tables
  .content
    %h2.title Registrations
    .inner
      %table.table
        %tr
          %th.first Registration Name
          %th &nbsp
          %th Control
          %th.last &nbsp;
          - @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" : "Validate"), slice_url(:validate_registration, { :id => node.name}), :method => "post", :confirm => "Are you sure you want to toggle this registrations validation?")
                |
                = link_to((node.admin ? "Remove Admin Rights" : "Make Admin"), slice_url(:admin_registration, { :id => node.name}), :method => "post", :confirm => "Are you sure you want to toggle this registrations administrator privileges?")
                |
                = link_to("Delete", slice_url(:registration, { :id => node.name} ), :method => "delete", :confirm => "Are you sure you want to delete this registration")<commit_msg>CHEF-283 - fix alerts in node registration<commit_after>.block#block-tables
  .content
    %h2.title Registrations
    .inner
      %table.table
        %tr
          %th.first Registration Name
          %th &nbsp
          %th Control
          %th.last &nbsp;
          - @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")
{'fraction_non_alphanumeric': 0.15453483845854418, 'fraction_numerical': 0.004281821720513819, 'mean_word_length': 2.5205479452054793, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4667704', 'n_tokens_mistral': 788, 'n_tokens_neox': 745, 'n_words': 209}