{% for action_name, url in actions %} {% if not forloop.first %} | {% endif%} {{ action_name }} {% endfor %}