morozovka-portal/app/templates/base.html

59 lines
2.6 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 %}Morozovka Platform{% endblock %}</title>
<link rel="stylesheet" href="/static/main.css">
{% block head %}{% endblock %}
</head>
<body class="{% block body_class %}{% endblock %}">
<nav class="topnav">
<a href="/" class="topnav-logo">
<svg width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 15h-2v-6h2v6zm0-8h-2V7h2v2zm4 8h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>
Morozovka Platform
</a>
<div class="topnav-links">
{% if session.get('user_id') %}
<a href="/dashboard" class="{% if request.path == '/dashboard' %}active{% endif %}">🏠 Мои</a>
{% endif %}
<a href="/schedule" class="{% if request.path.startswith('/schedule') %}active{% endif %}">Расписание</a>
<a href="/projects" class="{% if request.path.startswith('/projects') %}active{% endif %}">Проекты</a>
<a href="/workshops" class="{% if request.path.startswith('/workshops') %}active{% endif %}">Мастер-классы</a>
<a href="/files" class="{% if request.path.startswith('/files') %}active{% endif %}">Файлы</a>
<a href="/feed" class="{% if request.path.startswith('/feed') %}active{% endif %}">Лента</a>
</div>
<div class="topnav-actions">
{% if session.get('username') %}
{% if session.get('role') in ['admin', 'professor'] %}
<a href="/admin/schedule" class="btn btn-outline btn-sm">⚙️ Админ</a>
{% endif %}
<a href="/profile" class="btn btn-default">{{ session.get('username') }}</a>
{% else %}
<a href="/login" class="btn btn-default">Войти</a>
<a href="/register" class="btn btn-primary">Регистрация</a>
{% endif %}
</div>
</nav>
{% block outer_content %}
<main class="{% block main_class %}container{% endblock %}">
{% block content %}{% endblock %}
</main>
{% endblock %}
<footer class="footer">
Morozovka Platform ·
<a href="/schedule">Расписание</a> ·
<a href="/projects">Проекты</a> ·
<a href="/workshops">Мастер-классы</a> ·
<a href="/files">Файлы</a> ·
<a href="/feed">Лента</a>
{% if session.get('username') %} · <a href="/onboarding">Тур по платформе</a>{% endif %}
</footer>
<script src="/static/notif_bell.js"></script>
{% block scripts %}{% endblock %}
</body>
</html>