f1tness_parser/app/templates/base.html
2026-10-22 23:46:29 +03:00

44 lines
2.1 KiB
HTML

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{{ title }}{% endblock %} - Fitness Parser</title>
<link href="{{ url_for('static', path='/css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', path='/css/dataTables.bootstrap5.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', path='/css/main.css') }}" rel="stylesheet">
{% block extra_head %}{% endblock %}
</head>
<body data-datatables-lang="{{ url_for('static', path='/js/i18n/datatables-ru.json') }}">
<div class="d-flex flex-column flex-md-row">
<!-- Sidebar navigation: on narrow screens it turns into a strip on top -->
<aside class="sidebar bg-dark p-3">
<a class="d-block text-white text-decoration-none fs-5 fw-bold mb-md-4 me-3" href="{{ url_for('home') }}">
{{ app_name }}
</a>
<ul class="nav nav-pills flex-row flex-md-column gap-1 mt-2 mt-md-0">
{% for route, label in [('home', 'Тренировки'), ('obsidian_parse_form', 'Разобрать заметку'), ('exercises', 'Упражнения')] %}
<li class="nav-item">
<a class="nav-link text-white{% if request.url.path == url_for(route).path %} active{% endif %}" href="{{ url_for(route) }}">{{ label }}</a>
</li>
{% endfor %}
</ul>
</aside>
<!-- Main Content -->
<main class="flex-grow-1 p-4 content">
{% block content %}{% endblock %}
</main>
</div>
<script src="{{ url_for('static', path='/js/jquery-3.7.1.min.js') }}"></script>
<script src="{{ url_for('static', path='/js/bootstrap.bundle.min.js') }}"></script>
<script src="{{ url_for('static', path='/js/dataTables.min.js') }}"></script>
<script src="{{ url_for('static', path='/js/dataTables.bootstrap5.min.js') }}"></script>
<script src="{{ url_for('static', path='/js/main.js') }}"></script>
{% block extra_scripts %}{% endblock %}
</body>
</html>