[FIX] website_sale: highlight category
bzr revid: chm@openerp.com-20140121101529-2cseit2mq5w1d2z2
This commit is contained in:
@@ -246,7 +246,7 @@ class Ecommerce(http.Controller):
|
||||
'range': range,
|
||||
'search': {
|
||||
'search': search,
|
||||
'category': category,
|
||||
'category': category and category.id,
|
||||
'filters': filters,
|
||||
},
|
||||
'pager': pager,
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<!-- List of categories -->
|
||||
|
||||
<template id="categories_recursive" name="Category list">
|
||||
<li t-att-class="str(category.id) == search.get('category') and 'active' or ''">
|
||||
<li t-att-class="category.id == search.get('category') and 'active' or ''">
|
||||
<a t-href="/shop/category/#{ slug(category) }/" t-field="category.name"></a>
|
||||
<ul t-if="category.child_id" class="nav nav-pills nav-stacked nav-hierarchy">
|
||||
<t t-foreach="category.child_id" t-as="category">
|
||||
|
||||
Reference in New Issue
Block a user