mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-19 13:23:41 -05:00
51 lines
2.3 KiB
HTML
51 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="htmx-config" content='{ "responseHandling": [{ "code": "[45]", "swap": true }] }'>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap-icons.min.css') }}">
|
|
<link rel="preload" href="{{ url_for('static', filename='fonts/bootstrap-icons.woff2') }}" as="font" type="font/woff2" crossorigin>
|
|
<link rel="preload" href="{{ url_for('static', filename='fonts/rubik.woff2') }}" as="font" type="font/woff2" crossorigin>
|
|
<title>{% block title %}{% endblock %} - {{ cfg.appName }}</title>
|
|
</head>
|
|
<body class="m-2">
|
|
<div class="container-fluid">
|
|
{% if logged_in %}
|
|
<div class="d-flex justify-content-between">
|
|
{% endif %}
|
|
<ul class="nav nav-underline mt-2 mb-2">
|
|
<li class="nav-item"><a class="nav-link {{ homeLink }}" id="home-link" href="{{ url_for('index') }}">Home</a>
|
|
{%- if logged_in -%}
|
|
<li class="nav-item"><a class="nav-link {{ inboxLink }}" id="inbox-link" href="{{ url_for('inbox') }}">Inbox</a>
|
|
<li class="nav-item"><a class="nav-link {{ adminLink }}" id="admin-link" href="{{ url_for('admin.index') }}">Admin</a></li>
|
|
{%- endif -%}
|
|
</ul>
|
|
{% if logged_in %}
|
|
<ul class="nav nav-underline mt-2 mb-2">
|
|
<li><a class="nav-link" href="{{ url_for('admin.logout') }}">Logout</a></li>
|
|
</ul>
|
|
</div>
|
|
{% endif %}
|
|
{% with messages = get_flashed_messages(with_categories=True) %}
|
|
{% if messages %}
|
|
{% for category, message in messages %}
|
|
<div class="alert alert-{{ category }} alert-dismissible" role="alert">
|
|
<div>{{ message }}</div>
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
<script src="{{ url_for('static', filename='js/htmx.min.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
|
|
{% block scripts %}{% endblock %}
|
|
<footer class="py-3 my-4">
|
|
<p class="text-center text-body-secondary">CatAsk v{{ version }}</p>
|
|
</footer>
|
|
</body>
|
|
</html>
|