fix nginx conf + improve ui

This commit is contained in:
rmanach
2023-09-20 19:41:19 +02:00
parent b3989a401a
commit 53c54e9553
17 changed files with 263 additions and 134 deletions
+17 -22
View File
@@ -1,26 +1,21 @@
{% load static %}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{% block title %}Mumui{% endblock %}</title>
{% block headscript %}{% endblock %}
<link href="{% static 'deployment/css/bootstrap.min.css' %}" rel="stylesheet" type="text/css">
</head>
<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 %}
{% else %}
<p>You are not logged in</p>
<a href="{% url 'login' %}">log In</a>
{% endif %}
</main>
{% block script %}{% endblock %}
</body>
<body {% block bodyattr %}{% endblock %}>
{% include 'header.html' %}
<div class="container-md">
{% block content %}
{% endblock %}
</div>
<script src="{% static 'deployment/js/bootstrap.bundle.min.js' %}" /></script>
{% block script %}{% endblock %}
</body>
</html>