{% if bulk_action_buttons|length > 1 %}
{% for button in bulk_action_buttons %} {{ button }} {% if forloop.first %}
{% elif bulk_action_buttons|length == 1 %} {{ bulk_action_buttons|first }} {% endif %}