nav-top.html 1.28 KB
Newer Older
1
{% load static i18n compress%}
2
3

<nav class="navbar navbar-light fixed-top flex-md-nowrap p-0 border-bottom navbar-expand-sm" id="navbar-top">
4
    <a class="navbar-brand px-3" href="{% url 'core.landing_page' %}"><img class="navbar-logo" src="{% static 'images/logo-primary.svg' %}" /></a>
5

6
7
    <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon" />
8
9
10
    </button>

    <div class="collapse navbar-collapse" id="navbarSupportedContent">
11

12
        <input class="w-25 form-control mx-auto" type="text" placeholder="Search" name="q" ic-get-from="{% url 'ddusers:search' %}" ic-target="#content" aria-label="Search">
13
14
15

        <ul class="navbar-nav ml-auto">
            {% if request.user.is_authenticated %}
16
            <li class="nav-item">
17
                <a class="nav-link" href="{% url 'shibboleth:logout' %}">{% trans "Sign Out" %}</a>
18
19
            </li>
            {% else %}
20
            <li class="nav-item">
21
                <a id="log-in-link" class="nav-link" href="{% url 'shibboleth:login' %}">{% trans "Sign In" %}</a>
22
23
24
            </li>
            {% endif %}
        </ul>
25
26
    </div>
</nav>