lostplaces-backend/lostplaces/lostplaces_app/templates/global.html

54 lines
2.2 KiB
HTML
Raw Normal View History

{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
2020-07-26 22:23:55 +02:00
<link rel="stylesheet" href="{% static 'main.css' %}">
2020-08-04 23:36:40 +02:00
<link rel="stylesheet" href="{% static 'fonts.css' %}">
2020-07-27 18:49:50 +02:00
<link rel="icon" type="image/png" href="{% static 'favicon.ico' %}">
<title>
{% block title %}Urban Exploration{% endblock %}
2020-07-27 18:49:50 +02:00
</title>
</head>
<body>
<header class="LP-Header">
<div class="LP-Header__Logo">
<a class="LP-Link" href="/">
<img src="{% static 'logo.png' %}" class="LP-Image" />
</a>
</div>
<div class="LP-Header__UserInformation">
<span class="LP-Paragraph">
{% if user.is_authenticated %}
Hi {{ user.username }}!
2020-08-04 23:25:02 +02:00
<a class="LP-Link" href="{% url 'logout' %}"><span class="LP-Link__Text">logout</span></a>
{% else %}
<p>Du bist nicht eingeloggt.</p>
<a class="LP-Link" href="{% url 'login' %}"><span class="LP-Link__Text">login</span></a> |
<a class="LP-Link" href="{% url 'signup' %}"><span class="LP-Link__Text">signup</span></a>
{% endif %}
</span>
</div>
<div class="LP-Header__Navigation">
<nav class="LP-Menu LP-Menu">
<ul class="LP-Menu__List">
<li class="LP-Menu__Item"><a href="/" class="LP-Link">
<span class="LP-Link__Text">Home</span></a></li>
<li class="LP-Menu__Item"><a href="" class="LP-Link">
<span class="LP-Link__Text">About</span></a></li>
<li class="LP-Menu__Item"><a href="" class="LP-Link">
<span class="LP-Link__Text">Contact</span></a></li>
</ul>
</nav>
</div>
</header>
<article class="LP-MainContainer">
{% block maincontent %}
{% endblock maincontent %}
</article>
</body>
</html>