Sha256: 7bcf4301854351c7902bf0ff92e5b87971f574ee17a502db9355b098e8334833
Contents?: true
Size: 1.01 KB
Versions: 30
Compression:
Stored size: 1.01 KB
Contents
<% page_title 'products' %> <div> <h1 class='ns-page-title'><%= t(:products) %></h1> <%= link_to(new_admin_product_path, class: 'btn btn-success new-action', id: 'add_new_product') do %> <i class="icon-plus"></i> Add new product <% end %> <div class='clear'></div> </div> <br /> <table class="table table-striped"> <tbody> <% @products.each do |product| %> <tr> <td> <% if product.picture %> <%= link_to image_tag(product.picture.picture_url(:small)), admin_product_path(product) %> <% end %> </td> <td><%= link_to product.name, edit_admin_product_path(product) %></td> <td> <%= link_to 'Edit', edit_admin_product_path(product), title: 'Edit' %> | <%= link_to [:admin, product], data: { confirm: t(:delete_confirmation_for_product) }, method: 'delete', title: 'Delete', class: 'delete' do %> <%= delete_icon %> <% end %> </td> </td> </tr> <% end %> </tbody> </table>
Version data entries
30 entries across 30 versions & 1 rubygems