blob: 1275391fd6d36b766270ba6de0d1a12b843e6aed (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<!--
SPDX-FileCopyrightText: 2026 Dennis Fink <me+coding@dennisfink.me>
SPDX-License-Identifier: BSD-3-Clause
-->
{% from "bootstrap5/utils.html" import render_messages %}
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
{% block head %}
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no">
{% block styles %}
<!-- Bootstrap CSS -->
{{ bootstrap.load_css() }}
{% endblock %}
<title>{{ title }}</title>
{% endblock %}
</head>
<body>
<header>
<nav class="navbar bg-primary py-1">
<div class="container-fluid px3">
<a class="navbar-brand fs-6 mb-0" href="{{ url_for("root.index") }}">Webmentions</a>
{% if current_user.is_authenticated %}
<div class="navbar-nav flex-row gap-3">
<a class="nav-link{% if request.endpoint == 'root.received' %} active{% endif %}"
href='{{ url_for("root.received") }}'>Received</a>
<a class="nav-link{% if request.endpoint == 'root.sent' %} active{% endif %}"
href='{{ url_for("root.sent") }}'>Sent</a>
<a class="nav-link" href="{{ url_for("root.logout") }}">Logout</a>
</div>
{% endif %}
</div>
</div>
</nav>
</header>
<div class="mt-4">{{ render_messages(container=True) }}</div>
<div class="container py-4">
{% block content %}
{% endblock %}
</div>
{% block scripts %}
<!-- Optional JavaScript -->
{{ bootstrap.load_js() }}
{% endblock %}
</body>
</html>
|