<% count, preview = @product_group.generate_preview(Spree::Config[:admin_pgroup_preview_size]) %>

<%= ProductGroup.human_attribute_name(:products) %> (<%= count %>)

<% if count == 0 %>

<%= t('no_match_found') %>

<% else %> <% if count > Spree::Config[:admin_pgroup_preview_size] %>

<%= t('showing_first_n', :n => Spree::Config[:admin_pgroup_preview_size]) %>

<% end %> <% preview.each do |product| %> <% end %>
<%= Product.human_attribute_name(:name) %> <%= t(:action) %>
<%= link_to product.name, product_url(product) %> <%= link_to t(:edit), edit_admin_product_path(product) %>
<% end %>