Commit 8c6a9f6bfd6c5e3f24f9edf0054f7676bb8e888c
1 parent
25e97d59
Exists in
master
and in
29 other branches
[catalog-categories] Adding css class on highlighted product
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
app/views/catalog/index.rhtml
... | ... | @@ -23,7 +23,11 @@ |
23 | 23 | <% extra_content = @plugins.dispatch(:catalog_item_extras, product).collect { |content| instance_eval(&content) } %> |
24 | 24 | <% extra_content_list = @plugins.dispatch(:catalog_list_item_extras, product).collect { |content| instance_eval(&content) } %> |
25 | 25 | |
26 | - <li class="product <%= "not-available" unless product.available %>"> | |
26 | + <% status = [] %> | |
27 | + <% status << 'not-available' if !product.available %> | |
28 | + <% status << 'highlighted' if product.highlighted %> | |
29 | + | |
30 | + <li class="product <%= status.join(' ') %>"> | |
27 | 31 | <ul> |
28 | 32 | <li class="product-image-link"> |
29 | 33 | <% if product.image %> | ... | ... |