{% extends 'base.html' %}
{% load builds_filters %}

{% block container %}
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <ul class="nav navbar-nav">
                {% url 'builds:index' as url %}
                <li class="{% if request.path == url %}active{% endif %}">
                    <a href="{{ url }}">
                        Dashboard
                    </a>
                </li>

                {% for project in projects %}
                    {% url 'builds:project' project.id as url %}
                    <li class="{% if request.path|startswith:url %}active{% endif %}">
                        <a href="{{ url }}">
                            {{ project.name }}
                        </a>
                    </li>
                {% endfor %}

                {% url 'builds:global_settings' as url %}
                <li class="{% if request.path == url %}active{% endif %}">
                    <a href="{{ url }}">
                        Settings
                    </a>
                </li>

                {% url 'admin:index' as url %}
                <li class="{% if request.path == url %}active{% endif %}">
                    <a href="{{ url }}">
                        Admin
                    </a>
                </li>

                <li>
                    <a href="{% url 'account_logout' %}" data-action="post"
                       data-csrf-token="{{ csrf_token }}">Logout</a>
                </li>
            </ul>
        </div>
    </nav>
{% endblock %}

{% extends 'base.html' %}
{% load builds_filters %}

{% block container %}
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <ul class="nav navbar-nav">
                {% url 'builds:index' as url %}
                <li class="{% if request.path == url %}active{% endif %}">
                    <a href="{{ url }}">
                        Dashboard
                    </a>
                </li>

                {% for project in projects %}
                    {% url 'builds:project' project.id as url %}
                    <li class="{% if request.path|startswith:url %}active{% endif %}">
                        <a href="{{ url }}">
                            {{ project.name }}
                        </a>
                    </li>
                {% endfor %}

                {% url 'builds:global_settings' as url %}
                <li class="{% if request.path == url %}active{% endif %}">
                    <a href="{{ url }}">
                        Settings
                    </a>
                </li>

                {% url 'admin:index' as url %}
                <li class="{% if request.path == url %}active{% endif %}">
                    <a href="{{ url }}">
                        Admin
                    </a>
                </li>
            </ul>

            <ul class="nav navbar-nav navbar-right">
                <li>
                    <p class="navbar-text">
                        {% if request.user.first_name or request.user.last_name %}
                            {{ request.user.first_name }} {{ request.user.last_name }}
                        {% elif request.user.email %}
                            {{ request.user.email }}
                        {% else %}
                            {{ request.user.username }}
                        {% endif %}
                    </p>
                </li>

                <li>
                    <a href="{% url 'account_logout' %}" data-action="post"
                       data-csrf-token="{{ csrf_token }}">Logout</a>
                </li>
            </ul>
        </div>
    </nav>
{% endblock %}

Print login, move logout button
Print login, move logout button
