|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
{% block title %}
|
|
|
|
<title>Keep pollin', pollin', pollin', pollin'</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
|
|
|
<!-- Add additional CSS in static file -->
|
|
|
|
{% load static %}
|
|
|
|
<link rel="stylesheet" href="{% static 'css/styleguide.css' %}"/>
|
|
|
|
<link rel="stylesheet" href="{% static 'css/style.css' %}"/>
|
|
|
|
<link rel="stylesheet" href="{% static 'css/fonts.css' %}"/>
|
|
|
|
|
|
|
|
<script
|
|
|
|
src="https://unpkg.com/htmx.org@1.9.8"
|
|
|
|
integrity="sha384-rgjA7mptc2ETQqXoYC3/zJvkU7K/aP44Y+z7xQuJiVnB/422P/Ak+F/AqFR7E4Wr"
|
|
|
|
crossorigin="anonymous"
|
|
|
|
></script>
|
|
|
|
<script src="https://unpkg.com/hyperscript.org@0.9.12"></script>
|
|
|
|
|
|
|
|
{% block extra-head %}{% endblock %}
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<script>
|
|
|
|
document.body.addEventListener('htmx:configRequest', (event) => {
|
|
|
|
event.detail.headers['X-CSRFToken'] = '{{ csrf_token }}';
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
<header>
|
|
|
|
<div class="title h0 kanit-semibold">
|
|
|
|
Keep Polling
|
|
|
|
</div>
|
|
|
|
{% if user.is_authenticated %}
|
|
|
|
<form method="post" action="{% url 'logout' %}">
|
|
|
|
{% csrf_token %}
|
|
|
|
<button type="submit">Logout</button>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
</header>
|
|
|
|
<div class="content">
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
</div>
|
|
|
|
<footer>
|
|
|
|
Made by Guy Davis
|
|
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
</html>
|