mordor/templates/base.html

67 lines
1.9 KiB
HTML
Raw Normal View History

2021-05-17 20:50:02 +02:00
{% load static %}
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>{% block title %}{%endblock%} - Mordor</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="stylesheet" type="text/css" href="{% static 'main.css' %}"/>
{% block styles %}{% endblock %}
<!-- Place favicon.ico in the root directory -->
</head>
<body>
<hgroup>
<h1>Mordor</h1>
2021-05-17 23:15:38 +02:00
<div class="subtitle">Mate ORDeR tOol</div>
2021-05-17 20:50:02 +02:00
<nav>
<ul>
<li>
<a href="{% url 'winkel' %}">Winkel</a>
</li>
<li>
<a href="{% url 'orders' %}">Mijn orders</a>
</li>
{% if user.is_authenticated %}
<li class="deemphasized">
<span>
Hallo, {{ user.username }}
</span>
</li>
{% if user.is_staff or user.is_superuser %}
<li>
<a href="{% url 'manage' %}">
Manage
</a>
</li>
2021-05-17 20:50:02 +02:00
<li>
<a href="{% url 'admin:index' %}">
Admininterface
</a>
</li>
{% endif %}
<li>
<a href="{% url 'users:logout' %}">
Afmelden
</a>
</li>
{% else %}
<li>
<a href="{% url 'oauth:login' %}">
Inloggen
</a>
</li>
{% endif %}
</ul>
</nav>
</hgroup>
<main>
{% block content %}{% endblock %}
</main>
</body>
</html>