MediaDash/templates/base.html
2021-08-29 15:03:28 +02:00

40 lines
No EOL
1.5 KiB
HTML

{% from 'bootstrap/utils.html' import render_messages %}
<!doctype html>
<html lang="en">
<head>
{% block head %}
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% block styles %}
{{ bootstrap.load_css() }}
<link rel="stylesheet" href="{{url_for('static', filename='theme.css')}}">
{% endblock %}
<title>MediaDash</title>
{% endblock %}
</head>
<body>
{% block navbar %}
<nav class="navbar sticky-top navbar-expand-lg navbar-dark" style="background-color: #222;">
<a class="navbar-brand" href="/">MediaDash</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar_main" aria-controls="navbar_main" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbar_main">
{{nav.left_nav.render(renderer='bootstrap4')}}
</div>
</nav>
</div>
{% endblock %}
{% block content %}
<div class={{"container-fluid" if fluid else "container"}}>
{{render_messages()}}
{% block app_content %}{% endblock %}
</div>
{% endblock %}
{% block scripts %}
{{ bootstrap.load_js(with_popper=False) }}
{% endblock %}
</body>
</html>