index.html.haml 353 B

1234567891011121314
  1. - if notice
  2. %p#notice= notice
  3. %h1= t('.title_html')
  4. - @products.each do |product|
  5. .entry
  6. = image_tag(product.image_url)
  7. %h3= product.title
  8. %p= sanitize(product.description)
  9. .price_line
  10. %span.price= number_to_currency(product.price)
  11. = button_to t('.add_html'), line_items_path(product_id: product),
  12. remote: true