Sha256: 1f3e314b578f14763d6064bfd4b0d3f597d81a25246844c1346563ca93f118dd

Contents?: true

Size: 1011 Bytes

Versions: 11

Compression:

Stored size: 1011 Bytes

Contents

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

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

<% if count == 0 %>
  <p data-hook="preview_empty"><%= t(:no_match_found) %></p>
<% else %>

  <% if count > Spree::Config[:admin_pgroup_preview_size] %>
    <p data-hook="preview_showing"><%= t(:showing_first_n, :n => Spree::Config[:admin_pgroup_preview_size]) %></p>
  <% end %>

  <table class="index" data-hook="preview">
    <thead>
      <tr data-hook="preview_header">
        <th><%= Spree::Product.human_attribute_name(:name) %></th>
        <th><%= t(:action) %></th>
      </tr>
    </thead>
    <tbody>
    <% preview.each do |product| %>
      <tr data-hook="preview_row">
        <td>
          <%= link_to product.name, product_url(product) %>
        </td>
        <td>
          <%= link_to t(:edit), edit_admin_product_path(product) %>
        </td>
      </tr>
    <% end %>
    </tbody>
  </table>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
spree_core-1.0.7 app/views/spree/admin/product_groups/_preview.html.erb
spree_core-1.0.6 app/views/spree/admin/product_groups/_preview.html.erb
spree_core-1.0.4 app/views/spree/admin/product_groups/_preview.html.erb
spree_core-1.0.3 app/views/spree/admin/product_groups/_preview.html.erb
spree_core-1.0.2 app/views/spree/admin/product_groups/_preview.html.erb
spree_core-1.0.1 app/views/spree/admin/product_groups/_preview.html.erb
spree_core-1.0.0 app/views/spree/admin/product_groups/_preview.html.erb
spree_core-1.0.0.rc4 app/views/spree/admin/product_groups/_preview.html.erb
spree_core-1.0.0.rc3 app/views/spree/admin/product_groups/_preview.html.erb
spree_core-1.0.0.rc2 app/views/spree/admin/product_groups/_preview.html.erb
spree_core-1.0.0.rc1 app/views/spree/admin/product_groups/_preview.html.erb