nav-top.html 1.8 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
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<div class="mb-1">
    <nav class="navbar fixed-top navbar-expand-sm navbar-light">
        <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"></span>
        </button>
        <a class="navbar-brand" href="#"><img src="{% static 'images/logo-primary.svg' %}" height="40" /></a>

        <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>
            {% if request.user.is_authenticated %}
            <li class="nav-item">
                <a class="nav-link" href="{% url 'ddusers:edit' %}">{% trans "My Profile" %}</a>
            </li>
            <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>
            </li>
            <li class="nav-item" data-toggle="modal" data-target="#signIn">
                <a id="log-in-link" class="nav-link" href="#">{% trans "Sign In" %}</a>
            </li>
            {% endif %}
        </ul>
        </div>
    </nav><
</div>