Главное меню

Но список запросов пока представляет собой просто один запрос
This commit is contained in:
Anton Kamalov
2024-10-22 23:02:46 +03:00
parent 9f113c1603
commit efa3c0737b
6 changed files with 46 additions and 3 deletions

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Главное меню</title>
</head>
<body>
<h1>Hello World</h1>
<nav class="menu">
{% if 'role' in ses %}
<a href="{{ url_for('logout') }}">Выход</a>
{% else %}
<a href="{{ url_for('auth_bp.auth') }}">Авторизация</a>
{% endif %}
{% for point in menu %}
<a href="{{ url_for(point['url']) }}">{{ point['name'] }}</a>
{% endfor %}
</nav>
</body>
</html>