Fakultas Ilmu Komputer UI

Commit 9e1bdd71 authored by Josh Sudung's avatar Josh Sudung
Browse files

[#108] User Interface: Navbar

parent e793c4da
<nav class="navbar navbar-dark static-top shadow katalog-navbar"> <!-- Sidebar Toggle (Topbar) -->
<div class="sidebar-brand-text">Digipus</div>
<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>
<li class="nav-item">
<a class="nav-link" href="/profil-admin">Profil</a>
</li>
{% else %}
<li class="nav-item">
<a class="nav-link" href="/profil">Profil</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link" href="/logout">Logout</a>
</li>
{% endif %}
</ul>
</div>
</nav>
\ No newline at end of file
......@@ -49,10 +49,10 @@
<body style="background-color: #f8f8f8;">
{% include 'app/includes/navbar_katalog_materi.html' %}
<!-- Page Content -->
<div class="container">
{% include 'app/includes/navbar_katalog_materi.html' %}
<header class="jumbotron my-4">
<div class="container">
<div class="row header">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment