{% load squad %}
<h1>
    <a class="h1 text-primary" href="{% group_url project.group %}">{{project.group}}</a>
    » <a class="h1 text-primary" href="{% project_url project %}">{{project.slug}}</a>
    » <a class="h1 text-primary" href="{% build_url build %}">Build {{build.version}}</a>
</h1>

<ul class="nav nav-tabs">
    {% with url_name=request.resolver_match.url_name %}

    <li role="presentation" {% if url_name == 'build' %}class="active"{% endif %}>
        <a href="{% build_url build %}">
            Build summary
        </a>
    </li>
    <li role="presentation" {% if url_name == 'tests' or url_name == 'test_history' %}class="active"{% endif %}>
        <a href="{% build_section_url build 'tests' %}">
            All test results
        </a>
    </li>
    <li role="presentation" {% if url_name == 'testjobs' %}class="active"{% endif %}>
        <a href="{% build_section_url build 'testjobs' %}">
            Test jobs
        </a>
    </li>

    {% endwith %}
</ul>

