nopaque/app/templates/base.html.j2

107 lines
3.2 KiB
Plaintext
Raw Normal View History

2024-05-03 13:08:57 +00:00
{% if title is not defined %}
{% set title = 'nopaque' %}
{% endif %}
2024-07-01 13:37:34 +00:00
{% if sidenav_fixed is not defined %}
2024-11-15 14:21:26 +00:00
{% set sidenav_fixed = false %}
2024-07-01 13:37:34 +00:00
{% endif %}
{% if sticky_footer is not defined %}
{% set sticky_footer = true %}
{% endif %}
{% if navbar_fixed is not defined %}
{% set navbar_fixed = true %}
{% endif %}
{% if navbar_extended is not defined %}
{% set navbar_extended = false %}
{% endif %}
2024-05-04 12:41:40 +00:00
{% block doc %}
<!DOCTYPE html>
<html {% block html_attribs %}lang="en"{% endblock html_attribs %}>
{% block html %}
<head>
{% block head %}
{% block metas %}
{% include "_base/metas.html.j2" %}
{% endblock metas %}
2024-05-04 12:41:40 +00:00
<title {% block title_attribs %}{% endblock title_attribs %}>
{%- block title %}{{ title }}{% endblock title -%}
</title>
2024-05-04 12:41:40 +00:00
<link href="{{ url_for('static', filename='images/nopaque_-_favicon.png') }}" rel="icon">
2024-05-04 12:41:40 +00:00
{% block stylesheets %}
{% include "_base/stylesheets.html.j2" %}
{% endblock stylesheets %}
{% endblock head %}
</head>
2024-07-01 13:37:34 +00:00
<body {% block body_attribs %}data-sidenav-fixed="{{ sidenav_fixed }}" data-sticky-footer="{{ sticky_footer }}"{% endblock body_attribs %}>
2024-05-04 12:41:40 +00:00
{% block body %}
<header {% block header_attribs %}{% endblock header_attribs %}>
{% block header %}
{% if navbar_fixed %}
<div class="navbar-fixed">
{% endif %}
<nav {% block navbar_attribs %}{% if navbar_extended %}class="nav-extended"{% endif %}{% endblock navbar_attribs %}>
{% block navbar %}
2024-05-21 08:29:12 +00:00
<div {% block navbar_primary_content_attribs %}class="nav-wrapper"{% endblock navbar_primary_content_attribs %}>
{% block navbar_primary_content %}
{% include "_base/navbar_primary_content.html.j2" %}
{% endblock navbar_primary_content %}
</div>
{% if navbar_extended %}
2024-05-21 08:29:12 +00:00
<div {% block navbar_secondary_content_attribs %}class="nav-content"{% endblock navbar_secondary_content_attribs %}>
{% block navbar_secondary_content %}
{% endblock navbar_secondary_content %}
</div>
{% endif %}
{% endblock navbar %}
</nav>
{% if navbar_fixed %}
</div>
{% endif %}
2024-05-04 12:41:40 +00:00
{% block sidenav %}
{% if current_user.is_authenticated %}
{% include "_base/sidenav.html.j2" %}
{% endif %}
{% endblock sidenav %}
{% endblock header %}
</header>
2024-05-21 08:29:12 +00:00
<main {% block main_attribs %}{% endblock main_attribs %}>
2024-05-04 12:41:40 +00:00
{% block main %}
{% block page_content %}{% endblock page_content %}
{% endblock main %}
2024-05-04 12:41:40 +00:00
<div id="dropdowns">
{% block dropdowns %}
{% include "_base/dropdowns.html.j2" %}
{% endblock dropdowns %}
</div>
2024-05-04 12:41:40 +00:00
<div id="modals">
{% block modals %}
{% include "_base/modals.html.j2" %}
{% endblock modals %}
</div>
</main>
2024-05-21 08:29:12 +00:00
<footer {% block footer_attribs %}class="page-footer"{% endblock footer_attribs %}>
2024-05-04 12:41:40 +00:00
{% block footer %}
{% include "_base/footer.html.j2" %}
{% endblock footer %}
</footer>
2024-07-01 13:37:34 +00:00
{% block scripts %}
{% include "_base/scripts.html.j2" %}
{% endblock scripts %}
2024-05-04 12:41:40 +00:00
{% endblock body %}
</body>
{% endblock html %}
</html>
{% endblock doc %}