<div class="widget-content">
    {% set stepsCount = steps|length %}
    {% if stepsCount > 0 %}
        <ul class="workflow-step-list nav {% if stepsCount == 1 %}single-step{% endif %}">
            {% set isProcessed = true %}
            {% for step in steps %}
                {% set isCurrent = currentStep and step.name == currentStep.name %}
                <li class="{% if isCurrent %}current{% elseif isProcessed %}processed{% endif %}">
                    {{ step.label|trans }}
                </li>
                {% if isCurrent %}
                    {% set isProcessed = false %}
                {% endif %}
            {% endfor %}
        </ul>
    {% endif %}
</div>

<div class="widget-content">
    {% set stepsCount = steps|length %}
    {% set minStepsCount = 1 %}
    {% if stepsCount > minStepsCount %}
        <ul class="workflow-step-list nav {% if stepsCount == 1 %}single-step{% endif %}">
            {% set isProcessed = true %}
            {% for step in steps %}
                {% set isCurrent = currentStep and step.name == currentStep.name %}
                <li class="{% if isCurrent %}current{% elseif isProcessed %}processed{% endif %}">
                    {{ step.label|trans }}
                </li>
                {% if isCurrent %}
                    {% set isProcessed = false %}
                {% endif %}
            {% endfor %}
        </ul>
    {% endif %}
</div>

Hide steps widget if there is only one step
BAP-2978: Hide steps widget if there is only one step
