Red border when product is sold out
This commit is contained in:
parent
5a5fbdf1c9
commit
7831520c6f
2 changed files with 5 additions and 1 deletions
|
@ -32,3 +32,7 @@
|
|||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
div.out-of-stock {
|
||||
border-color:red;
|
||||
}
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue