nav-top.html 1.63 KB
Newer Older
1
{% load static i18n compress%}
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<nav class="navbar fixed-top navbar-expand-sm navbar-light">
    <a class="navbar-brand" href="#"><img src="{% static 'images/logo-primary.svg' %}" height="40" /></a>
    <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" />
    </button>


    <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav mr-auto">
        <li class="nav-item active">
        <a class="nav-link" href="#">{% trans "Home" %}</a>
        </li>
        <li class="nav-item">
        <a class="nav-link" href="#">{% trans "About" %}</a>
        </li>
        <li class="nav-item">
        <form class="form-inline">
            <input id="navsearch"  type="search" placeholder="{% trans "Search" %}" aria-label="Search">
        </form>
        </li>
hynek's avatar
hynek committed
22
        {% if request.user.is_authenticated %}
23
24
25
        <li class="nav-item">
            <a class="nav-link" href="{% url 'ddusers:edit' %}">{% trans "My Profile" %}</a>
        </li>
26
27
28
29
30
31
        <li class="nav-item">
            <a class="nav-link" href="#">{% trans "Sign Out" %}</a>
        </li>
        {% else %}
        <li class="nav-item">
            <a id="sign-up-link" class="nav-link" href="#">{% trans "Sign Up" %}</a>
hynek's avatar
hynek committed
32
        </li>
33
34
35
        <li class="nav-item" data-toggle="modal" data-target="#signIn">
            <a id="log-in-link" class="nav-link" href="#">{% trans "Sign In" %}</a>
        </li>
36
37
        {% endif %}
    </ul>
38
39
    </div>
</nav>