82 lines
3.3 KiB
HTML
82 lines
3.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-bs-theme="dark">
|
|
|
|
<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">
|
|
<title>Earthman RPG | {% block title_text %}{% endblock title_text %}</title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.8/css/bootstrap.min.css"/>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<nav class="navbar">
|
|
<div class="container-fluid">
|
|
<a href="/" class="navbar-brand">
|
|
<h1>Welcome, Earthman</h1>
|
|
</a>
|
|
{% if user.email %}
|
|
<a class="navbar-link" href="{% url 'my_lists' user.id %}">My lists</a>
|
|
<span class="navbar-text">Logged in as {{ user.email }}</span>
|
|
<form method="POST" action="{% url "logout" %}">
|
|
{% csrf_token %}
|
|
<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 %}
|
|
</div>
|
|
</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 %}
|
|
|
|
<div class="row justify-content-center p-5 bg-body-tertiary rounded-3">
|
|
<div class="col-lg-6 text-center">
|
|
<h2 class="display-1 mb-4">{% block header_text %}{% endblock header_text %}</h2>
|
|
{% block extra_header %}
|
|
{% endblock extra_header %}
|
|
</div>
|
|
</div>
|
|
|
|
{% block content %}
|
|
{% endblock content %}
|
|
|
|
</div>
|
|
</body>
|
|
|
|
<script
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.8/js/bootstrap.min.js"
|
|
></script>
|
|
{% block scripts %}
|
|
{% endblock scripts %}
|
|
|
|
</html> |