{% for phase in phases %}
{% ifchanged phase.step %}
current_phase.step %}
data-title="{{ phase.future_name }}" aria-label="{{ current_phase.future_name }}"
{% else %}
{% if public %}
data-title="{{ phase.public_name }}" aria-label="{{ phase.public_name }}"
{% else %}
data-title="{{ phase }}" aria-label="{{ phase }}"
{% endif %}
{% endif %}
{% else %}
{% if public %}
data-title="{{ current_phase.public_name }}" aria-label="{{ current_phase.public_name }}"
{% else %}
data-title="{{ current_phase }}" aria-label="{{ current_phase }}"
{% endif %}
{% endif %}
>
{% endifchanged %}
{% endfor %}