Sha256: 16b8b50074244abdf4c587a94c97fdd4867e25f9737876efd32ffa59629e1aa9
Contents?: true
Size: 870 Bytes
Versions: 7
Compression:
Stored size: 870 Bytes
Contents
ul.row - @products.each do |product| li.col-xs-6.col-sm-3 .thumbnail.text-center = link_to comable.product_path(product) do = image_tag product.image_url, width: '100%' h5 = link_to product.name, comable.product_path(product) - if product.caption.present? p = product.caption strong = number_to_currency product.price p = form_tag comable.add_cart_path do - stock = product.stocks.first - if stock && stock.stocked? .add_cart.form-inline.form-group = hidden_field_tag :stock_id, stock.id = submit_tag Comable.t('add_to_cart'), class: 'btn btn-default' - else .soldout = submit_tag Comable.t('soldout'), class: 'btn btn-default', disabled: true
Version data entries
7 entries across 7 versions & 2 rubygems