kers/templates/base.html

67 lines
1.3 KiB
HTML
Raw Normal View History

2020-07-22 17:16:04 +02:00
{% load static %}
2020-07-22 04:08:30 +02:00
<!DOCTYPE html>
<html>
2020-07-22 05:44:49 +02:00
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width"/>
2020-07-22 17:16:04 +02:00
<title>{% block title %}{% endblock %} KeRS</title>
<link rel="stylesheet" type="text/css" href="{% static 'main.css' %}"/>
2020-07-22 05:44:49 +02:00
{% block styles %}{% endblock %}
</head>
<body>
<nav>
2020-07-22 14:06:16 +02:00
<button id="nav-button"></button>
2020-07-22 15:10:49 +02:00
<ul class="alignLeft">
2020-07-22 05:44:49 +02:00
<li>
<a href="{% url 'events:index' %}">
Home</a>
</li>
<li>
<a href="{% url 'users:profile' %}">
Profile
</a>
</li>
</ul>
2020-07-22 15:10:49 +02:00
<ul class="alignRight">
{% if user.is_authenticated %}
<li class="accentuated">
2020-07-22 15:17:27 +02:00
<span>
Hello, {{ user.username }}
</span>
2020-07-22 15:10:49 +02:00
</li>
<li>
<a href="{% url 'users:logout' %}">
Logout
</a>
</li>
{% else %}
<li>
<a href="{% url 'oauth:login' %}">
Login
</a>
</li>
{% endif %}
</ul>
<div style="clear: both;"></div>
2020-07-22 05:44:49 +02:00
</nav>
<h1>Zeus WPI Kelderregistratiesysteem™</h1>
2020-07-22 14:06:16 +02:00
<main>
2020-07-22 15:10:49 +02:00
{% block content %}{% endblock %}
2020-07-22 14:06:16 +02:00
</main>
2020-07-22 05:44:49 +02:00
<script>
document.addEventListener("DOMContentLoaded", function () {
let button = document.getElementById('nav-button')
button.addEventListener('click', () => {
if (button.innerText === "☰") {
button.innerText = "✖";
} else {
button.innerText = "☰";
}
})
});
</script>
2020-07-22 14:06:16 +02:00
</body>
2020-07-22 04:08:30 +02:00
</html>