Red border when product is sold out

This commit is contained in:
David Vandorpe 2015-07-07 22:36:04 +02:00
parent 5a5fbdf1c9
commit 7831520c6f
2 changed files with 5 additions and 1 deletions

View file

@ -32,3 +32,7 @@
vertical-align: middle;
}
}
div.out-of-stock {
border-color:red;
}

View file

@ -1,5 +1,5 @@
<div class="col-md-3 form_products">
<div class="thumbnail ">
<div class="thumbnail<%= product.stock ==0 ? ' out-of-stock' : '' %>">
<div class="form_row center">
<div class="form_row_image">
<%= image_tag product.avatar %>