format html + put js in static

This commit is contained in:
2023-09-19 12:03:36 +02:00
parent 0ed9acd405
commit 7fb593c98a
7 changed files with 85 additions and 82 deletions
+10 -7
View File
@@ -1,23 +1,26 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{% block title %}mumui{% endblock %}</title>
{% block headscript %}{% endblock %}
</head>
<body {% block bodyattr %}{% endblock %}>
<main>
{% if user.is_authenticated or "login" in request.path %}
{% block content %}
{% endblock %}
{% if user.is_authenticated %}
<p><a href="{% url 'logout' %}">log out</a></p>
{% endif %}
{% block content %}
{% endblock %}
{% if user.is_authenticated %}
<p><a href="{% url 'logout' %}">log out</a></p>
{% endif %}
{% else %}
<p>You are not logged in</p>
<a href="{% url 'login' %}">log In</a>
<p>You are not logged in</p>
<a href="{% url 'login' %}">log In</a>
{% endif %}
</main>
{% block script %}{% endblock %}
</body>
</html>