0001-general-add-has_subitems-flag-to-menu-context-64957.patch
combo/public/menu.py | ||
---|---|---|
82 | 82 |
continue |
83 | 83 |
menuitem = {'page': element} |
84 | 84 |
menuitem['selected'] = bool(element == page_of_level) |
85 |
menuitem['has_children'] = len(element.get_children()) != 0 |
|
85 | 86 |
menuitems.append(menuitem) |
87 | ||
86 | 88 |
context['menuitems'] = menuitems |
87 | 89 |
return context |
88 |
- |