{% if non_grouped_actions or grouped_actions %} <{{ actions.tag }}{{ actions.attrs }}> {% for category, category_id, actions_in_group in grouped_actions %}
{% endfor %} {% for action in non_grouped_actions %} {{ action }} {% endfor %} {% endif %}