Incepted/templates/base.html

49 lines
1.6 KiB
HTML

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8"/>
<link rel="stylesheet" href="../static/css/base.css"/>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous"
/>
<link rel="icon" href="../static/images/logo_b.ico" type="image/x-icon"/>
<title>{{title}}</title>
</head>
<body>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.1/dist/js/bootstrap.bundle.min.js"
integrity="sha384-u1OknCvxWvY5kfmNBILK2hRnQC3Pr17a+RTT6rIHI7NnikvbZlHgTPOOmMi466C8"
crossorigin="anonymous"
></script>
<nav class="navbar">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img
src="../static/images/logo_b.png"
alt="Logo"
width="80"
height="65"
class="d-inline-block align-text-top"
/>
</a>
{% if current_user.is_authenticated %}
<a class="auth_button" href="/logout">Выход</a>
{% else %}
<a class="auth_button" href="/login">Авторизация</a>
{% endif %}
</div>
</nav>
<!-- Begin page content -->
<main role="main">{% block content %}{% endblock %}</main>
<footer class="footer">
<div class="footer_block">
<a href="/#header_block"><img class="footer_logo" src="../static/images/logo_w.png"></a>
<strong class="footer_rights">© All rights reserved</strong>
</div>
</footer>
</body>
</html>