Главное меню
Но список запросов пока представляет собой просто один запрос
This commit is contained in:
11
App/templates/exit.html
Normal file
11
App/templates/exit.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Успешно</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>До свидания!</h1>
|
||||
<button><a href="{{ url_for('index') }}">На главную страницу</a></button>
|
||||
</body>
|
||||
</html>
|
||||
@@ -6,5 +6,10 @@
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello World</h1>
|
||||
<nav class="menu">
|
||||
{% for point in menu %}
|
||||
<a class="middle" href="{{ point['url'] }}">{{ point['name'] }}</a>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
</body>
|
||||
</html>
|
||||
20
App/templates/main_menu.html
Normal file
20
App/templates/main_menu.html
Normal 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>
|
||||
Reference in New Issue
Block a user