Sha256: dd5bde5fa2b5983b182cfbf5f56ecbf073beb610032d92759528136021451c61
Contents?: true
Size: 1000 Bytes
Versions: 2
Compression:
Stored size: 1000 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_core-0.70.0.rc2 | app/views/admin/product_groups/_preview.html.erb |
spree_core-0.70.RC1 | app/views/admin/product_groups/_preview.html.erb |