{% macro _category_path(category, truncated_path) %} {% set first_node, inner_nodes, last_node, truncated = truncated_path %} {% endmacro %} {% macro _category_item(category, truncated_path, extra_info='') %}
  • {{ category.title }} {{ _category_path(category, truncated_path) }} {{ extra_info }}
    {{ caller() }}
  • {% endmacro %} {% macro user_category(category, truncated_path, is_manager) %} {% call _category_item(category, truncated_path) %} {% if is_manager %} {% else %} {% endif %} {% endcall %} {% endmacro %} {% macro suggested_category(category, truncated_path) %} {% set category_action_extra %}
    {% trans %}Add to favourites{% endtrans %}
    {% endset %} {% call _category_item(category, truncated_path, category_action_extra) %} {% endcall %} {% endmacro %} {% macro favorite_category(category, truncated_path) %} {% call _category_item(category, truncated_path) %} {% endcall %} {% endmacro %}