nav-top.html 1.86 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

{% comment %}
    <!-- navbar top -->
    <nav class="navbar fixed-top flex-md-nowrap p-0 border-bottom" id="navbar-top">
      <a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#"><img src="./static/assets/logos/discussdata-logo.svg" height="40" /></a>
      <input class="w-25 form-control" type="text" placeholder="Search" aria-label="Search">
      <ul class="navbar-nav px-3">
        <li class="nav-item text-nowrap">
          <a class="nav-link" href="https://getbootstrap.com/docs/4.1/examples/dashboard/#">Sign out</a>
        </li>
      </ul>
    </nav>
{% endcomment %}

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

19
20
    <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" />
21
22
23
    </button>

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

25
        <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">
26
27
28

        <ul class="navbar-nav ml-auto">
            {% if request.user.is_authenticated %}
29
            <li class="nav-item">
30
                <a class="nav-link" href="{% url 'ddusers.user_logout' %}">{% trans "Sign Out" %}</a>
31
32
33
            </li>
            {% else %}
            <li class="nav-item" data-toggle="modal" data-target="#signIn">
34
                <a id="log-in-link" class="nav-link" href="{% url 'ddusers.user_login' %}">{% trans "Sign In" %}</a>
35
36
37
            </li>
            {% endif %}
        </ul>
38
39
    </div>
</nav>