{% load statusbar_tags %}
{% for phase in phases %} {% ifchanged phase.step %} {% status_display current_phase phase public as display_text %} {% if current_phase.step == phase.step %} {% include "funds/includes/status_bar_item.html" with is_current=True is_complete=False label=display_text %} {% elif current_phase.step > phase.step %} {% include "funds/includes/status_bar_item.html" with is_current=False is_complete=True label=display_text %} {% else %} {% include "funds/includes/status_bar_item.html" with is_current=False is_complete=False label=display_text %} {% endif %} {% endifchanged %} {% endfor %}
{% if public %} {{ current_phase.public_name }} {% else %} {{ current_phase }} {% endif %}