{% macro menuItemLabel(label, icon) %}
{% if icon is defined and icon and icon starts with 'icon-' %}
{% else %}
{{ label|translate }}
{% endif %}
{% endmacro %}
{% macro topMenuItem(label, icon, menu) %}
{% if menu._html is defined %}
{{ menu._html|raw }}
{% else %}
{{ _self.menuItemLabel(label, icon) }}
{% endif %}
{% endmacro %}
{% macro isActiveItem(menu, currentModule, currentAction) %}{% if (menu and menu._url and menu._url.module is defined and menu._url.module == currentModule and (menu._url.action is empty or menu._url.action == currentAction)) %}active{% endif %}{% endmacro %}
{% if topMenuModule is not defined %}
{% set topMenuModule = currentModule %}
{% set topMenuAction = currentAction %}
{% endif %}
{% spaceless %}
{% for label,menu in topMenu %}