43 lines
1.7 KiB
HTML
43 lines
1.7 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
<title>{% block title %}PatchBay{% endblock %} - PatchBay</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
</head>
|
|
<body class="{% block bodyclass %}{% endblock %}">
|
|
{% if user %}
|
|
<header class="topbar">
|
|
<span class="brand">PatchBay</span>
|
|
<nav>
|
|
{% set ep = request.endpoint %}
|
|
<a href="{{ url_for('views.patch') }}" class="{{ 'active' if ep == 'views.patch' }}">Patch</a>
|
|
<a href="{{ url_for('views.services') }}" class="{{ 'active' if ep == 'views.services' }}">Services</a>
|
|
<a href="{{ url_for('views.stats') }}" class="{{ 'active' if ep == 'views.stats' }}">Stats</a>
|
|
<a href="{{ url_for('views.settings') }}" class="{{ 'active' if ep == 'views.settings' }}">Settings</a>
|
|
<a href="{{ url_for('views.help_page') }}" class="{{ 'active' if ep == 'views.help_page' }}">Help</a>
|
|
</nav>
|
|
{% block toolbar %}{% endblock %}
|
|
<form method="post" action="{{ url_for('auth.logout') }}" class="logout">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<span class="who">{{ user.username }}{% if user.sysop %} (sysop){% endif %}</span>
|
|
<button type="submit" class="btn small">Log out</button>
|
|
</form>
|
|
</header>
|
|
{% endif %}
|
|
{% with msgs = get_flashed_messages(with_categories=true) %}
|
|
{% if msgs %}
|
|
<div class="flashes">
|
|
{% for cat, msg in msgs %}<div class="flash {{ cat }}">{{ msg }}</div>{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
<main class="{% block mainclass %}page{% endblock %}">
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
{% block scripts %}{% endblock %}
|
|
</body>
|
|
</html>
|