Commit 773360f7 authored by Falk, Dennis Nikolas's avatar Falk, Dennis Nikolas
Browse files

Navbar hinzugefügt. Requirements.txt angepasst -> neue Module Version installiert

parent bd11585e
......@@ -3,7 +3,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% bootstrap_javascript %}
{% bootstrap_javascript jquery="slim" %}
{% bootstrap_css %}
<link rel="stylesheet" href="{% static 'blog/styles.css' %}">
{% block css %}
......@@ -15,30 +15,54 @@
</title>
</head>
<body>
<nav class="navbar fixed-top navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand" href="{% url 'blog:all_blogs' %}">Personal Blog</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Blog Archiv
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
{% if user.is_authenticated %}
<li class="nav-item nav-link">Hallo, {{ user.username }}</li>
{% if user.is_staff %}
<li class="nav-item"><a class="nav-link" href="/admin">Adminbereich</a></li>
{% endif %}
<li class="nav-item"><a class="nav-link" href="{% url 'blog:user_logout' %}">Logout</a></li>
{% else %}
<li class="nav-item"><a class="nav-link" href="{% url 'blog:user_login' %}">Login</a></li>
{% endif %}
</ul>
</div>
</nav>
<div class="jumbotron jumbotron-fluid">
<div class="container">
{% block heading %}
{% endblock %}
</div>
</div>
{% block content %}
{% endblock %}
<footer class="fixed-bottom bg-light">
<ul class="nav justify-content-end">
{% if user.is_authenticated %}
<li class="nav-item nav-link">Hallo, {{ user.username }}</li>
<li class="nav-item"><a class="nav-link" href="{% url 'blog:user_logout' %}">Logout</a></li>
{% else %}
<li class="nav-item"><a class="nav-link" href="{% url 'blog:user_login' %}">Login</a></li>
{% endif %}
{% if user.is_authenticated and user.is_staff %}
<li class="nav-item"><a class="nav-link" href="/admin">Adminbereich</a></li>
{% endif %}
<li class="nav-item"><a class="nav-link" href="{% url 'blog:blog-detail' slug='impress' %}">Impressum</a></li>
<li class="nav-item"><a class="nav-link" href="{% url 'blog:blog-detail' slug='contact' %}">Kontakt</a></li>
</ul>
......
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