MediaDash/templates/base.html

40 lines
1.5 KiB
HTML
Raw Permalink Normal View History

2021-08-29 13:03:28 +00:00
{% 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 %}
2021-12-13 18:11:43 +00:00
<link rel="shortcut icon" type="image/svg" href="{{url_for('static',filename='icon.svg')}}"/>
2021-08-29 13:03:28 +00:00
<title>MediaDash</title>
{% endblock %}
</head>
<body>
{% block navbar %}
<nav class="navbar sticky-top navbar-expand-lg navbar-dark" style="background-color: #222;">
2021-12-13 18:11:43 +00:00
{% if request.path!=url_for("login") %}
<img src="{{url_for('static',filename='icon.svg')}}" width=40 height=40/>
{% endif %}
2021-08-29 13:03:28 +00:00
<div class="collapse navbar-collapse" id="navbar_main">
{{nav.left_nav.render(renderer='bootstrap4')}}
2021-12-13 18:11:43 +00:00
{{nav.right_nav.render(renderer='bootstrap4')}}
2021-08-29 13:03:28 +00:00
</div>
2021-12-13 18:11:43 +00:00
</nav>
2021-08-29 13:03:28 +00:00
{% 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>