Files
2026-09-06 17:32:29 +03:00

73 lines
4.3 KiB
HTML

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}SecretText{% endblock %}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='icons/bootstrap-icons.css') }}">
<link rel="icon" type="image/svg+xml"
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3E%3Cpath fill-rule='evenodd' d='m4.736 1.968-.892 3.269-.014.058C2.113 5.568 1 6.006 1 6.5 1 7.328 4.134 8 8 8s7-.672 7-1.5c0-.494-1.113-.932-2.83-1.205l-.014-.058-.892-3.27c-.146-.533-.698-.849-1.239-.734C9.411 1.363 8.62 1.5 8 1.5s-1.411-.136-2.025-.267c-.541-.115-1.093.2-1.239.735m.015 3.867a.25.25 0 0 1 .274-.224c.9.092 1.91.143 2.975.143a30 30 0 0 0 2.975-.143.25.25 0 0 1 .05.498c-.918.093-1.944.145-3.025.145s-2.107-.052-3.025-.145a.25.25 0 0 1-.224-.274M3.5 10h2a.5.5 0 0 1 .5.5v1a1.5 1.5 0 0 1-3 0v-1a.5.5 0 0 1 .5-.5m-1.5.5q.001-.264.085-.5H2a.5.5 0 0 1 0-1h3.5a1.5 1.5 0 0 1 1.488 1.312 3.5 3.5 0 0 1 2.024 0A1.5 1.5 0 0 1 10.5 9H14a.5.5 0 0 1 0 1h-.085q.084.236.085.5v1a2.5 2.5 0 0 1-5 0v-.14l-.21-.07a2.5 2.5 0 0 0-1.58 0l-.21.07v.14a2.5 2.5 0 0 1-5 0zm8.5-.5h2a.5.5 0 0 1 .5.5v1a1.5 1.5 0 0 1-3 0v-1a.5.5 0 0 1 .5-.5'/%3E%3C/svg%3E">
{% block extra_head %}{% endblock %}
</head>
<body>
<div class="container py-4">
<header class="pb-3 mb-4 border-bottom">
<div class="d-flex flex-wrap align-items-center justify-content-between">
<div>
<h1 class="display-6 fw-normal mb-0">
<a href="{{ url_for('index') }}" class="text-decoration-none text-dark">SecretText</a>
</h1>
<p class="text-secondary mb-0 small">Безопасная передача одноразовых секретов</p>
</div>
<nav class="d-flex flex-wrap align-items-center gap-2">
{% if is_authenticated %}
<a href="{{ url_for('index') }}" class="btn btn-sm btn-outline-secondary">Главная</a>
<a href="{{ url_for('my_secrets') }}" class="btn btn-sm btn-outline-secondary">Мои секреты</a>
<a href="{{ url_for('request_secret_form') }}" class="btn btn-sm btn-outline-secondary">Запросить
секрет</a>
<a href="{{ url_for('my_requests') }}" class="btn btn-sm btn-outline-secondary">Мои запросы</a>
{% if is_admin %}
<a href="{{ url_for('admin_panel') }}" class="btn btn-sm btn-secondary">Админка</a>
{% endif %}
<span class="text-secondary small mx-1">|</span>
<a href="{{ url_for('profile') }}" class="text-decoration-none text-secondary small me-1">
<i class="bi bi-person-circle"></i> {{ current_user }}
</a>
<a href="{{ url_for('logout') }}" class="btn btn-sm btn-outline-danger">Выйти</a>
{% else %}
<a href="{{ url_for('login') }}" class="btn btn-sm btn-secondary">Войти</a>
{% endif %}
</nav>
</div>
</header>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
{{ message }}
<button type="button" class="btn-close" data-bs-dismiss="alert"></button>
</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
<footer class="pt-3 mt-4 border-top text-center text-secondary">
<small><a href="https://git.palchikov.name/PalchikovAleksandr/secrettext"
class="link-secondary link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover">Проект
с открытым исходным кодом secrettext</a></small>
</footer>
</div>
{% block scripts %}{% endblock %}
<script src="{{ url_for('static', filename='js/bootstrap.bundle.min.js.js') }}"
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
crossorigin="anonymous"></script>
</body>
</html>