2 версия сайта, чтобы было совсем красиво

This commit is contained in:
2023-04-27 18:04:54 +07:00
parent e7a2be67ff
commit aac4d9fdda
9 changed files with 244 additions and 84 deletions
+19 -24
View File
@@ -1,31 +1,26 @@
<!DOCTYPE html>
<html>
<html lang="ru">
<head>
<title>Logs</title>
<link href="{{ url_for('static', path='/css/logs.css') }}" rel="stylesheet">
</head>
<body>
<div class="container">
<h1>Logs</h1>
{% if logs %}
<ul class="logs-list">
{% for log in logs %}
<li><a href="/logs/{{ log[0] }}">{{ log[1] }}</a></li>
{% endfor %}
</ul>
{% else %}
No logs found.
{% endif %}
{% if logged_in %}
Logged in as admin.
{% else %}
You need to be logged in to view this page.
{% endif %}
</div>
<div class="container">
<h1>Logs</h1>
{% if logs %}
<ul class="logs-list">
{% for log in logs %}
<li>
<form method="get" action="/logs/{{ log[0] }}">
<button type="submit">{{ log[1] }}</button>
</form>
</li>
{% endfor %}
</ul>
{% else %}
<p>No logs found.</p>
{% endif %}
</div>
</body>
</html>