Browse Source

Fixed the display of children categories in the primary site navigation

master
Jon Price 12 years ago
parent
commit
3b55d290d4
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      oscar/templates/oscar/partials/nav_primary.html

+ 2
- 2
oscar/templates/oscar/partials/nav_primary.html View File

@@ -33,7 +33,7 @@
33 33
                     {% if tree_categories %}
34 34
                         <li class="divider"></li>
35 35
                         {% for tree_category, info in tree_categories %}
36
-                            {% if info.children %}
36
+                            {% if info.has_children %}
37 37
                                 <li class="dropdown-submenu">
38 38
                                 <a tabindex="-1" href="{{ tree_category.get_absolute_url }}">{{ tree_category.name }}</a>
39 39
                                 <ul class="dropdown-menu">
@@ -41,7 +41,7 @@
41 41
                                 <li><a tabindex="-1" href="{{ tree_category.get_absolute_url }}">{{ tree_category.name }}</a></li>
42 42
                             {% endif %}
43 43
 
44
-                            {% for close in info.close %}
44
+                            {% for close in info.num_to_close %}
45 45
                                 </ul></li>
46 46
                             {% endfor %}
47 47
                         {% endfor %}

Loading…
Cancel
Save