{% set index = url_for("publisher.index") %}
{% set journals = url_for('publisher.journals') %}
{% set urs = url_for('publisher.updates_in_progress') %}
{% set xml = url_for('publisher.upload_file') %}
{% set metadata = url_for('publisher.metadata') %}
{% set preservation = url_for('publisher.preservation') %}
{% set help = url_for('publisher.help') %}

{% set tabs = [
    (index, "My drafts"),
    (journals, "My journals"),
    (urs, "My update requests"),
    (xml, "Upload article XML"),
    (metadata, "Enter article metadata"),
    (preservation, "Preservation"),
    (help, "Help"),
    ]
%}

<div class="tabs">
    <nav class="tabs__menu">
        <ul class="tabs__list" role="tablist">
            {% for url, label in tabs %}
                {% if label == "Preservation" and not current_user.has_role("preservation") %}
                    {% continue %}
                {% endif %}
                {% set selected = url == request.path %}
                <li class="tabs__item" {% if not selected %}role="presentation"{% endif %}>
                    <a href="{{ url }}" aria-selected="{% if selected %}true{% else %}false{% endif %}">{{ label }}</a>
                </li>
            {% endfor %}
        </ul>
    </nav>
</div>


{% set index = url_for("publisher.index") %}
{% set journals = url_for('publisher.journals') %}
{% set urs = url_for('publisher.updates_in_progress') %}
{% set xml = url_for('publisher.upload_file') %}
{% set metadata = url_for('publisher.metadata') %}
{% set preservation = url_for('publisher.preservation') %}
{% set help = url_for('publisher.help') %}

{% set tabs = [
    (index, "My drafts"),
    (journals, "My journals"),
    (urs, "My update requests"),
    (xml, "Upload article XML"),
    (metadata, "Enter article metadata"),
    (preservation, "Upload preservation file"),
    (help, "Help"),
    ]
%}

<div class="tabs">
    <nav class="tabs__menu">
        <ul class="tabs__list" role="tablist">
            {% for url, label in tabs %}
                {% if label == "Preservation" and not current_user.has_role("preservation") %}
                    {% continue %}
                {% endif %}
                {% set selected = url == request.path %}
                <li class="type-06 tabs__item" {% if not selected %}role="presentation"{% endif %}>
                    <a href="{{ url }}" aria-selected="{% if selected %}true{% else %}false{% endif %}">{{ label }}</a>
                </li>
            {% endfor %}
        </ul>
    </nav>
</div>

Reduce submenu type size, uniformise page heading w/ menu
Reduce submenu type size, uniformise page heading w/ menu
