<commit_before><%= render 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  <%= Spree.t(:user_groups) %>
<% end %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to Spree.t(:new_user_group), new_object_url, :icon => 'plus', :id => 'admin_new_user_group_link' %>
  </li>
<% end %>

<% if @user_groups.any? %>
  <table class="index" id='listing_user_groups'>
    <thead>
    <tr data-hook="admin_user_groups_index_headers">
      <th><%= Spree.t(:name) %></th>
      <th><%= Spree.t(:calculator) %></th>
      <th data-hook="admin_user_groups_index_header_actions" class="actions"></th>
    </tr>
    </thead>
    <tbody>
    <% @user_groups.includes(:calculator).each do |user_group| %>
      <tr id="<%= spree_dom_id user_group %>" data-hook="admin_user_groups_index_rows" class="<%= cycle('odd', 'even') %>">
        <td class="align-center"><%= user_group.name %></td>
        <td class="align-center"><%= user_group.calculator_description %></td>
        <td data-hook="admin_user_groups_index_row_actions" class="actions">
          <%= link_to_with_icon('dollar', Spree.t(:per_variant_pricing), "/admin/user_groups/#{user_group.id}/pricing", {:data => {:action => 'edit'}, :no_text => true}) if user_group.calculator.class == Spree::Calculator::PerVariantPricing %>
          <%= link_to_edit user_group, :no_text => true %>
          <%= link_to_delete user_group, :no_text => true %>
      </tr>
    <% end %>
    <% if @user_groups.empty? %>
      <tr>
        <td colspan="3"><%= Spree.t(:none) %></td>
      </tr>
    <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alpha twelve columns no-objects-found">
    <%= Spree.t(:no_resource_found, resource: Spree.t(:other, scope: 'activerecord.models.spree/user_group')) %>,
    <%= link_to Spree.t(:add_one), spree.new_admin_user_group_path %>!
  </div>
<% end %><commit_msg>Fix broken translation on user group index<commit_after><%= render 'spree/admin/shared/configuration_menu' %>

<% content_for :page_title do %>
  <%= Spree.t(:user_groups) %>
<% end %>

<% content_for :page_actions do %>
  <li>
    <%= button_link_to Spree.t(:new_user_group), new_object_url, :icon => 'plus', :id => 'admin_new_user_group_link' %>
  </li>
<% end %>

<% if @user_groups.any? %>
  <table class="index" id='listing_user_groups'>
    <thead>
    <tr data-hook="admin_user_groups_index_headers">
      <th><%= Spree.t(:name) %></th>
      <th><%= Spree.t(:calculator) %></th>
      <th data-hook="admin_user_groups_index_header_actions" class="actions"></th>
    </tr>
    </thead>
    <tbody>
    <% @user_groups.includes(:calculator).each do |user_group| %>
      <tr id="<%= spree_dom_id user_group %>" data-hook="admin_user_groups_index_rows" class="<%= cycle('odd', 'even') %>">
        <td class="align-center"><%= user_group.name %></td>
        <td class="align-center"><%= user_group.calculator_description %></td>
        <td data-hook="admin_user_groups_index_row_actions" class="actions">
          <%= link_to_with_icon('dollar', Spree.t(:per_variant_pricing), "/admin/user_groups/#{user_group.id}/pricing", {:data => {:action => 'edit'}, :no_text => true}) if user_group.calculator.class == Spree::Calculator::PerVariantPricing %>
          <%= link_to_edit user_group, :no_text => true %>
          <%= link_to_delete user_group, :no_text => true %>
      </tr>
    <% end %>
    <% if @user_groups.empty? %>
      <tr>
        <td colspan="3"><%= Spree.t(:none) %></td>
      </tr>
    <% end %>
    </tbody>
  </table>
<% else %>
  <div class="alpha twelve columns no-objects-found">
    <%= Spree.t(:no_resource_found, resource: I18n.t(:other, scope: 'activerecord.models.spree/user_group')) %>,
    <%= link_to Spree.t(:add_one), spree.new_admin_user_group_path %>!
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.20252498684902684, 'fraction_numerical': 0.0010520778537611783, 'mean_word_length': 3.945383615084525, 'pattern_counts': {'":': 0, '<': 113, '<?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': '363928', 'n_tokens_mistral': 1474, 'n_tokens_neox': 1355, 'n_words': 228}