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

21 lines
518 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">
2015-07-07 20:13:37 +02:00
<h6>
2015-07-08 13:31:32 +02:00
<% if product.calories %>
2015-07-07 20:13:37 +02:00
<%= product.calories %> kcal
<% else %>
&nbsp;
<% end %>
</h6>
<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>