{% load tags %} {% if actions %}
{% if compact or request|mobile or request|tablet or request.GET.compact %} {% with grouped_actions=actions|group_by_icon %} {% for action in grouped_actions.with_icon %} {% if target != 'instance' or target == 'instance' and action.key in enabled %} {{ action.icon|icontag }} {% endif %} {% endfor %} {% if grouped_actions.without_icon %} {% endif %} {% endwith %} {% else %} {% for action in actions %} {% if target != 'instance' or target == 'instance' and action.key in enabled %}  {{ action.icon|icontag }} {% if target != 'instance' or not action.icon %}{{ action.submit }}{% endif %}  {% endif %} {% endfor %} {% endif %}
{% endif %}