{% for path in paths %} {% if path.ssh_url %} Open console{% if several %} ({{ path.console_port.name }}){% endif %} {% endif %} {% if path.px_url %} Open in Percepxion{% if several %} ({{ path.console_port.name }}){% endif %} {% endif %} {% endfor %}