{% if page_labels|length > 1 %}
<div id="steps" class="steps-{{page_labels|length}}">
<ol>
{% for page_label in page_labels %}
{% spaceless %}
<li class="{% if forloop.first %}first{% endif %}
           {% if forloop.last %}last{% endif %}
           {% if forloop.counter == current_page_no %}current{% endif %}
           {% if forloop.counter < current_page_no %}step-before{% endif %}
           {% if forloop.counter > current_page_no %}step-after{% endif %}" >
  <span class="marker">{{ forloop.counter }}</span>
  <span class="total">{{ page_labels|length }}</span>
  <span class="label">{{ page_label }}</span>
</li>
{% endspaceless %}
{% endfor %}
</ol>
</div>
{% endif %}
