{% for action in enabled.actions %} {{ action.L_ACTION }}{% if not action.S_LAST_ROW %} | {% endif %} {% endfor %} {% for action in disabled.actions %} {{ action.L_ACTION }}{% if not action.S_LAST_ROW %} | {% endif %} {% endfor %}