{% if tabs|length == 1 %} {% include "wagtailadmin/shared/header.html" with title=page_title icon=header_icon tabbed=0 merged=0 %}
{% include tabs.0.template %}
{% else %} {% include "wagtailadmin/shared/header.html" with title=page_title icon=header_icon tabbed=1 merged=1 %}
{% for tab in tabs %} {% include 'wagtailadmin/shared/tabs/tab_nav_link.html' with tab_id=tab.id title=tab.label %} {% endfor %}
{% for tab in tabs %} {% endfor %}
{% endif %}