Sha256: e7032a68d4e3d102cdb0faa8ca2e03365a34e2f076455e4f20624942d37c9e68
Contents?: true
Size: 998 Bytes
Versions: 8
Compression:
Stored size: 998 Bytes
Contents
<% count, preview = @product_group.generate_preview(Spree::Config[:admin_pgroup_preview_size]) %> <h2><%= 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><%= 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
8 entries across 8 versions & 1 rubygems