pelmeni-shield-vpn/site/templates/base.html

57 lines
2.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{% block title %}Клуб Любителей ЖПЧХ{% endblock %} — Международное сообщество контрастной фотографии</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<div class="wrapper">
<header>
<div class="header-top">
<div>
<a href="{{ url_for('index') }}" class="site-title">КЛУБ ЛЮБИТЕЛЕЙ ЖПЧХ</a>
<div class="site-tagline">Международное сообщество уличной и контрастной фотографии (Основано на Волге, 2012)</div>
</div>
<div class="user-panel">
{% if current_user %}
<span>Вы вошли как: <b>{{ current_user.username }}</b> ({{ current_user.role }})</span> |
<a href="{{ url_for('logout') }}">Выход</a>
{% else %}
<a href="{{ url_for('login') }}">Вход</a> |
<a href="{{ url_for('register') }}">Регистрация</a>
{% endif %}
</div>
</div>
</header>
<nav>
<a href="{{ url_for('index') }}" class="{% if request.endpoint == 'index' %}active{% endif %}">[ Главная ]</a>
<a href="{{ url_for('manifest') }}" class="{% if request.endpoint == 'manifest' %}active{% endif %}">[ Манифест ]</a>
<a href="{{ url_for('gallery') }}" class="{% if request.endpoint == 'gallery' %}active{% endif %}">[ Фотогалерея (16) ]</a>
<a href="{{ url_for('forum') }}" class="{% if request.endpoint in ['forum', 'topic', 'new_topic'] %}active{% endif %}">[ Форум ]</a>
{% if current_user %}
<a href="{{ url_for('new_topic') }}">[ + Создать тему ]</a>
{% endif %}
</nav>
<main>
{% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %}
{% for category, message in messages %}
<div class="alert alert-{{ category }}">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
</main>
<footer>
<div>&copy; 2012–2026 Клуб Любителей ЖПЧХ. Волжское отделение (Симбирск). Все права защищены.</div>
<div>Сервер: jpchx.matrixhasyou.ru | Портал контрастной уличной фотографии</div>
</footer>
</div>
</body>
</html>