kers/templates/base.html
2020-07-22 17:16:04 +02:00

66 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% load static %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width"/>
<title>{% block title %}{% endblock %} KeRS</title>
<link rel="stylesheet" type="text/css" href="{% static 'main.css' %}"/>
{% block styles %}{% endblock %}
</head>
<body>
<nav>
<button id="nav-button"></button>
<ul class="alignLeft">
<li>
<a href="{% url 'events:index' %}">
Home</a>
</li>
<li>
<a href="{% url 'users:profile' %}">
Profile
</a>
</li>
</ul>
<ul class="alignRight">
{% if user.is_authenticated %}
<li class="accentuated">
<span>
Hello, {{ user.username }}
</span>
</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>
</nav>
<h1>Zeus WPI Kelderregistratiesysteem™</h1>
<main>
{% block content %}{% endblock %}
</main>
<script>
document.addEventListener("DOMContentLoaded", function () {
let button = document.getElementById('nav-button')
button.addEventListener('click', () => {
if (button.innerText === "☰") {
button.innerText = "✖";
} else {
button.innerText = "☰";
}
})
});
</script>
</body>
</html>