Вёрстка
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Успешно</title>
|
||||
<link href="static/css/main.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<h1>До свидания!</h1>
|
||||
<button><a href="{{ url_for('index') }}">На главную страницу</a></button>
|
||||
<h2>До свидания!</h2>
|
||||
<a href="{{ url_for('index') }}"><button>На главную страницу</button></a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,6 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Привет мир!</title>
|
||||
<link href="static/css/main.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello World</h1>
|
||||
|
||||
@@ -3,16 +3,23 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Главное меню</title>
|
||||
<link href="static/css/main.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello World</h1>
|
||||
{% if 'role' in ses %}
|
||||
<div class="logout">
|
||||
<a href="{{ url_for('logout') }}"><button>Выход</button></a>
|
||||
</div>
|
||||
<h1>Здравствуйте, {{ ses['login'] }}!</h1>
|
||||
{% else %}
|
||||
<div class="login">
|
||||
<a href="{{ url_for('auth_bp.auth') }}"><button>Авторизация</button></a>
|
||||
</div>
|
||||
<h1>Здравствуйте!</h1>
|
||||
{% endif %}
|
||||
|
||||
<nav class="menu">
|
||||
{% if 'role' in ses %}
|
||||
<a href="{{ url_for('logout') }}">Выход</a>
|
||||
{% else %}
|
||||
<a href="{{ url_for('auth_bp.auth') }}">Авторизация</a>
|
||||
{% endif %}
|
||||
<a href="{{ url_for('requests_bp.requests') }}">Запросы</a>
|
||||
<a href="{{ url_for('requests_bp.requests') }}"><button>Запросы</button></a>
|
||||
</nav>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user