Merge pull request #55 from VandorpeDavid/out_of_order

Red border when product is sold out
This commit is contained in:
benji 2015-08-24 16:02:29 +02:00
commit 652c598722
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<%= ' out-of-stock' if product.stock.zero? %>">
<div class="form_row center">
<div class="form_row_image">
<%= image_tag product.avatar %>