{# Steps below HAS_ADDON don't have an addon associated. Once we have an addon we can't go back below that line. #} {% set HAS_ADDON = 3 %} {% if webapp %} {% set NAV = (_('Getting Started'), _('Link your app'), _('Describe your app'), _('Add images'), _("You're done!")) %} {% set MAX = 5 %} {% set BASE = 'devhub.submit_apps.%s' %} {% else %} {% set NAV = (_('Getting Started'), _('Upload your add-on'), _('Describe your add-on'), _('Add images'), _('Select a license'), _('Select a review process'), _("You're done!")) %} {% set MAX = 7 %} {% set BASE = 'devhub.submit.%s' %} {% endif %}

{{ _('Submission Process') }}

    {% for text in NAV %}
  1. {% if step.current < HAS_ADDON %} {% if loop.index <= step.current %} {{ text }} {% else %} {{ text }} {% endif %} {% else %} {# 1. We have an addon, so don't link to non-addon steps. 2. Don't link steps above the max step the addon has reached. 3. If step.max == MAX the addon is done, so we only show the final page. #} {% if loop.index < HAS_ADDON or loop.index > step.max or step.max == MAX %} {{ text }} {% else %} {{ text }} {% endif %} {% endif %}
  2. {% endfor %}