butter-portal/app/templates/base.html

63 lines
1.7 KiB
HTML
Raw Normal View History

2026-02-17 08:42:33 +00:00
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if title %}
<title>{{ title }}</title>
{% else %}
<title>"{{ get_setting('butterbox_name') }}"</title>
{% endif %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@1.0.4/css/bulma.min.css">
<link rel="stylesheet" href="{{ url_for('static', filename='butter_styles.css') }}">
</head>
<body>
<div class="container">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a href="/"><img class="image is-32x32" src="{{ get_setting('butterbox_logo') }}"></a>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<a href="{{ url_for('share') }}" class="navbar-item">
Share
</a>
<a href="{{ url_for('about') }}" class="navbar-item">
About
</a>
<a href="{{ url_for('admin') }}" class="navbar-item">
Admin
</a>
</div>
</div>
</nav>
2026-02-17 08:42:33 +00:00
<div class="content"> </div>
2026-02-17 08:42:33 +00:00
{% with messages = get_flashed_messages() %}
{% if messages %}
<div class="notification">
<ul>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endwith %}
{% block content %}{% endblock %}
2026-02-17 08:42:33 +00:00
</div>
</body>
</html>