{% load horizon i18n %} {% spaceless %} {# This makes sure whitespace doesn't affect positioning for dropdown. #} {% if row_actions|length == 1 %} {% include "horizon/common/_data_table_action.html" with action=row_actions.0 is_single=1 %} {% elif row_actions|length > 1 %}
{% for action in row_actions %} {% if forloop.first %} {% include "horizon/common/_data_table_action.html" with is_small=1 is_single=1 %} {% endif %} {% endfor %}
{% endif %} {% endspaceless %}