2026-03-02 13:57:03 -05:00
|
|
|
{% load compress %}
|
|
|
|
|
{% load static %}
|
2026-03-03 16:10:49 -05:00
|
|
|
{% load lyric_extras %}
|
2026-03-02 13:57:03 -05:00
|
|
|
|
2026-01-13 20:58:05 -05:00
|
|
|
<!DOCTYPE html>
|
2026-03-02 13:57:03 -05:00
|
|
|
<html lang="en">
|
2026-01-13 20:58:05 -05:00
|
|
|
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
<meta name="author" content="Disco DeDisco">
|
|
|
|
|
<meta name="robots" content="noindex, nofollow">
|
2026-01-29 15:21:54 -05:00
|
|
|
<title>Earthman RPG | {% block title_text %}{% endblock title_text %}</title>
|
2026-03-02 13:57:03 -05:00
|
|
|
{% compress css %}
|
|
|
|
|
<link type="text/x-scss" rel="stylesheet" href="{% static 'scss/core.scss' %}">
|
|
|
|
|
{% endcompress %}
|
2026-01-13 20:58:05 -05:00
|
|
|
</head>
|
|
|
|
|
|
2026-03-05 14:45:55 -05:00
|
|
|
<body class="{{ user_palette }}">
|
2026-01-13 20:58:05 -05:00
|
|
|
<div class="container">
|
2026-01-30 17:23:07 -05:00
|
|
|
<nav class="navbar">
|
2026-01-29 15:21:54 -05:00
|
|
|
<div class="container-fluid">
|
2026-01-31 15:16:34 -05:00
|
|
|
<a href="/" class="navbar-brand">
|
|
|
|
|
<h1>Welcome, Earthman</h1>
|
|
|
|
|
</a>
|
2026-02-01 16:19:07 -05:00
|
|
|
{% if user.email %}
|
2026-02-07 22:47:04 -05:00
|
|
|
<a class="navbar-link" href="{% url 'my_lists' user.id %}">My lists</a>
|
2026-03-03 16:10:49 -05:00
|
|
|
<span class="navbar-text">Logged in as {{ user|display_name }}</span>
|
2026-02-01 20:06:01 -05:00
|
|
|
<form method="POST" action="{% url "logout" %}">
|
2026-01-29 15:21:54 -05:00
|
|
|
{% csrf_token %}
|
2026-02-01 16:19:07 -05:00
|
|
|
<button id="id_logout" class="btn btn-outline-secondary" type="submit">
|
|
|
|
|
Log Out
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
{% else %}
|
|
|
|
|
<form method="POST" action="{% url "send_login_email" %}">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<label for="id_email_input" class="navbar-text me-2">
|
|
|
|
|
enter email for login:
|
|
|
|
|
</label>
|
|
|
|
|
<input
|
|
|
|
|
id="id_email_input"
|
|
|
|
|
name="email"
|
|
|
|
|
class="form-control"
|
|
|
|
|
placeholder="your@email.here"
|
|
|
|
|
>
|
|
|
|
|
{% csrf_token %}
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
{% endif %}
|
2026-01-29 15:21:54 -05:00
|
|
|
</div>
|
2026-01-30 17:23:07 -05:00
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
{% if messages %}
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
{% for message in messages %}
|
|
|
|
|
{% if message.level_tag == 'success' %}
|
|
|
|
|
<div class="alert alert-success">{{ message }}</div>
|
|
|
|
|
{% else %}
|
|
|
|
|
<div class="alert alert-warning">{{ message }}</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
2026-01-29 15:21:54 -05:00
|
|
|
|
2026-03-02 15:45:12 -05:00
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-lg-6">
|
|
|
|
|
<h2 >{% block header_text %}{% endblock header_text %}</h2>
|
2026-02-08 21:43:58 -05:00
|
|
|
{% block extra_header %}
|
|
|
|
|
{% endblock extra_header %}
|
2026-01-13 20:58:05 -05:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2026-02-08 21:43:58 -05:00
|
|
|
{% block content %}
|
|
|
|
|
{% endblock content %}
|
2026-01-13 20:58:05 -05:00
|
|
|
|
|
|
|
|
</div>
|
2026-01-25 22:40:57 -05:00
|
|
|
|
2026-03-04 15:13:16 -05:00
|
|
|
{% block scripts %}
|
|
|
|
|
{% endblock scripts %}
|
|
|
|
|
<script src="{% static "vendor/htmx.min.js" %}"></script>
|
|
|
|
|
<script>
|
|
|
|
|
document.body.addEventListener('htmx:configRequest', function(evt) {
|
|
|
|
|
evt.detail.headers['X-CSRFToken'] = getCookie('csrftoken');
|
|
|
|
|
});
|
|
|
|
|
function getCookie(name) {
|
|
|
|
|
let val = null;
|
|
|
|
|
if (document.cookie) {
|
|
|
|
|
for (let c of document.cookie.split(';')) {
|
|
|
|
|
c = c.trim();
|
|
|
|
|
if (c.startsWith(name + '=')) {
|
|
|
|
|
val = decodeURIComponent(c.substring(name.length + 1));
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return val;
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
2026-01-03 19:20:41 -05:00
|
|
|
</html>
|