Sha256: a47d21d060aafe4ab09e6733531021bd9f7094db3bbbe3b66174446f3f92280e
Contents?: true
Size: 667 Bytes
Versions: 3
Compression:
Stored size: 667 Bytes
Contents
- @page_title = "Products" = content_for :header do %p.buttons = link_to "New product", :new_product, :class => 'button green' = link_to "New category", :new_product_category, :class => 'button green' %h2 Products .table %table.data %thead %tr %th SKU %th Name %th Price %th Stock %tbody - for category, products in @products %tr %th{:colspan => 4}= category.name - for product in products %tr %td= product.sku %td= link_to product.title, [:edit, product] %td= number_to_currency product.price %td= product.stock
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
shoppe-0.0.7 | app/views/shoppe/products/index.html.haml |
shoppe-0.0.6 | app/views/shoppe/products/index.html.haml |
shoppe-0.0.5 | app/views/shoppe/products/index.html.haml |