Fakultas Ilmu Komputer UI

navbar_katalog_materi.html 1.87 KB
Newer Older
1
  
Josh Sudung's avatar
Josh Sudung committed
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
    <nav class="navbar navbar-expand-lg navbar-light  static-top shadow katalog-navbar"> <!-- Sidebar Toggle (Topbar) -->
        <div class="sidebar-brand-text navbar-brand">Digipus</div>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarContent" aria-controls="navbarContent" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarContent">
          <ul class="navbar-nav ml-auto">
            <li class="nav-item active">
              <a class="nav-link" href="/">Home<span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="/forum">Forum</a>
            </li>
            {% if not request.user.is_authenticated %}
              <li class="nav-item">
                <a class="nav-link" href="/registrasi">Registrasi</a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="/login">Login Kontributor</a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="/login_admin">Login Admin</a>
              </li>
            {% else %}
              <li class="nav-item">
                <a class="nav-link" href="/dashboard">Dasbor</a>
              </li>
              {% if request.user.is_admin %}
                <li class="nav-item">
                  <a class="nav-link" href="/administration">Administrasi</a>
                </li>
              {% endif %}
35
36
37
              <li class="nav-item">
                <a class="nav-link" href="/profil">Profil</a>
              </li>
Josh Sudung's avatar
Josh Sudung committed
38
39
40
41
42
43
              <li class="nav-item">
                <a class="nav-link" href="/logout">Logout</a>
              </li>
            {% endif %}
          </ul>
        </div>
44
    </nav>