tap/app/views/products/_product.html.erb

15 lines
407 B
Text
Raw Normal View History

2014-12-09 14:39:27 +01:00
<div class="col-md-3">
<div class="thumbnail pic">
<div class="form_row_image">
<%= image_tag product.avatar %>
</div>
2014-12-09 14:39:27 +01:00
<div class="caption">
<%= kcal_tag product.calories %>
<h4><%= product.name %></h4>
<h3><%= euro(product.price) %></h3>
<h6>(In stock: <%= product.stock %>)</h6>
<%= render 'products/links', product: product %>
2014-12-09 14:39:27 +01:00
</div>
</div>
</div>