<commit_before><% title "Category: "+@category.name %>

<div class="btn-group">
  <%= link_to "Add new #{@category.name.singularize} model".titleize, new_category_equipment_model_path(@category), class: 'btn' %>
  <%= link_to "View all #{@category.name.singularize} models".titleize, category_equipment_models_path(@category), class: 'btn' %>
</div>
<hr />

<p>
  <strong>Max Per User:</strong>
  <%= intify @category.max_per_user %>
</p>
<p>
  <strong>Max Checkout Length:</strong>
  <%= dayify @category.max_checkout_length %>
</p>
<p>
  <strong>Sort Order:</strong>
  <%= @category.sort_order %>
</p>
<p>
  <strong>Activated:</strong>
  <%= @category.deleted_at == nil %>
</p>

<% unless (@category.max_renewal_length.nil?) or (@category.max_renewal_times.nil?) %>
  <p>
    <strong>Default Maximum Renewal Period:</strong>
    <%= pluralize(@category.maximum_renewal_length, 'day') %>
  </p>
  <% unless @category.renewal_days_before_due.nil? %>
    <p>
      Items in this category are by default available for renewal <strong>
      <%= pluralize(@category.maximum_renewal_days_before_due, 'day') %>
      </strong> before the reservation due date.
    </p>
  <% else %>
    <p>
      By default, items in this category may be renewed <strong>at any time</strong>.
    </p>
  <% end %>
  <p>
    <strong>Default Maximum Renewals per Reservation:</strong>
    <%= intify @category.max_renewal_times %>
  </p>
<% else %>
  <p>
    <strong><em>By default, items in this category are not available for renewal.</em></strong>
  </p>
<% end %>

<% if can? :manage, Category %>
  <div class="form-actions">
    <%= link_to "Edit Category", edit_category_path(@category), class: 'btn' %>
    <%= make_deactivate_btn :category, @category %>
    <%= link_to "View All Categories", categories_path, class: 'btn' %>
  </div>
<% end %><commit_msg>categories, not category<commit_after><% title "Category: "+@category.name %>

<div class="btn-group">
  <%= link_to "Add new #{@category.name.singularize} model".titleize, new_category_equipment_model_path(@category), class: 'btn' %>
  <%= link_to "View all #{@category.name.singularize} models".titleize, category_equipment_models_path(@category), class: 'btn' %>
</div>
<hr />

<p>
  <strong>Max Per User:</strong>
  <%= intify @category.max_per_user %>
</p>
<p>
  <strong>Max Checkout Length:</strong>
  <%= dayify @category.max_checkout_length %>
</p>
<p>
  <strong>Sort Order:</strong>
  <%= @category.sort_order %>
</p>
<p>
  <strong>Activated:</strong>
  <%= @category.deleted_at == nil %>
</p>

<% unless (@category.max_renewal_length.nil?) or (@category.max_renewal_times.nil?) %>
  <p>
    <strong>Default Maximum Renewal Period:</strong>
    <%= pluralize(@category.maximum_renewal_length, 'day') %>
  </p>
  <% unless @category.renewal_days_before_due.nil? %>
    <p>
      Items in this category are by default available for renewal <strong>
      <%= pluralize(@category.maximum_renewal_days_before_due, 'day') %>
      </strong> before the reservation due date.
    </p>
  <% else %>
    <p>
      By default, items in this category may be renewed <strong>at any time</strong>.
    </p>
  <% end %>
  <p>
    <strong>Default Maximum Renewals per Reservation:</strong>
    <%= intify @category.max_renewal_times %>
  </p>
<% else %>
  <p>
    <strong><em>By default, items in this category are not available for renewal.</em></strong>
  </p>
<% end %>

<% if can? :manage, Category %>
  <div class="form-actions">
    <%= link_to "Edit Category", edit_category_path(@category), class: 'btn' %>
    <%= make_deactivate_btn :categories, @category %>
    <%= link_to "View All Categories", categories_path, class: 'btn' %>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.17952883834281072, 'fraction_numerical': 0.0, 'mean_word_length': 4.19549929676512, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 131, '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': '7639689', 'n_tokens_mistral': 1373, 'n_tokens_neox': 1249, 'n_words': 296}