<commit_before><% title (@equipment_model.nil? ? "Equipment Objects" : @equipment_model.name.pluralize) %>

<!-- old code: <table id="equipment_model_table"> -->
<table id="table_woo" class="datatable table table-striped table-bordered">
  <thead>
  <tr>
    <th>Equipment Model</th>
    <th>Name</th>
    <th>Serial (optional)</th>
    <th>Status</th>
<%# these blank TH's necessary for the sort function %>
  <% if current_user.is_admin_in_adminmode? %>
    <th class="no_sort"> </th>
    <th class="no_sort"> </th>
  <% end %>
  </tr>
  </thead>
  <tbody>
  <% for equipment_object in @equipment_objects %>
    <% if equipment_object.deleted_at %>
      <tr class="deactivated">
      <% @toggle = "link_to \"Activate\", activate_path(:equipment_objects,equipment_object), :class => \"btn btn-success\"" %>
    <% else %>
      <tr class= "activated">
      <% @toggle = "link_to \"Deactivate\", deactivate_path(:equipment_objects,equipment_object), :class => \"btn btn-danger\"" %>
    <% end %>
      <td><%= link_to equipment_object.equipment_model.name, equipment_object.equipment_model %></td>
      <td><%= link_to equipment_object.name, equipment_object %></td>
      <td><%= equipment_object.serial %></td>
      <td><%= equipment_object.status %></td>
      <% if current_user.is_admin_in_adminmode? %>
        <td><%= link_to "Edit", edit_equipment_object_path(equipment_object), :class => "btn" %></td>
        <td><%= eval @toggle %></td>
      <% end %>
    </tr>
  <% end %>
  </tbody>
</table><commit_msg>Dislabed EO links for checkout people, since they can't see them<commit_after><% title (@equipment_model.nil? ? "Equipment Objects" : @equipment_model.name.pluralize) %>

<!-- old code: <table id="equipment_model_table"> -->
<table id="table_woo" class="datatable table table-striped table-bordered">
  <thead>
  <tr>
    <th>Equipment Model</th>
    <th>Name</th>
    <th>Serial (optional)</th>
    <th>Status</th>
<%# these blank TH's necessary for the sort function %>
  <% if current_user.is_admin_in_adminmode? %>
    <th class="no_sort"> </th>
    <th class="no_sort"> </th>
  <% end %>
  </tr>
  </thead>
  <tbody>
  <% for equipment_object in @equipment_objects %>
    <% if equipment_object.deleted_at %>
      <tr class="deactivated">
      <% @toggle = "link_to \"Activate\", activate_path(:equipment_objects,equipment_object), :class => \"btn btn-success\"" %>
    <% else %>
      <tr class= "activated">
      <% @toggle = "link_to \"Deactivate\", deactivate_path(:equipment_objects,equipment_object), :class => \"btn btn-danger\"" %>
    <% end %>
      <td><%= link_to equipment_object.equipment_model.name, equipment_object.equipment_model %></td>
       <% if current_user.is_admin_in_adminmode? %>
         <td><%= link_to equipment_object.name, equipment_object %></td>
       <% else %>
         <td> <%=equipment_object.name%> </td>
       <% end %>
      <td><%= equipment_object.serial %></td>
      <td><%= equipment_object.status %></td>
      <% if current_user.is_admin_in_adminmode? %>
        <td><%= link_to "Edit", edit_equipment_object_path(equipment_object), :class => "btn" %></td>
        <td><%= eval @toggle %></td>
      <% end %>
    </tr>
  <% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.18831168831168832, 'fraction_numerical': 0.0, 'mean_word_length': 3.6214285714285714, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 127, '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': '2389647', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1091, 'n_words': 226}