<%= image_tag product.avatar %>

<%= product.name %> - <%= euro(product.price) %> (<%= product.stock %>)

<% if current_user && current_user.admin? %>

<%= link_to "Edit", edit_product_path(product), class: "btn btn-default" %> <%= link_to "Delete", product_path(product), method: :delete, class: "btn btn-danger", data: {confirm: 'Are you sure?'} %>

<% end %>