tap/app/views/products/_product.html.erb
David Vandorpe ee86411d58 Using helper to generate kcal tag
As suggested by Benji
2015-07-08 17:38:51 +02:00

14 lines
407 B
Text

<div class="col-md-3">
<div class="thumbnail pic">
<div class="form_row_image">
<%= image_tag product.avatar %>
</div>
<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 %>
</div>
</div>
</div>