Files
jobs/web/templates/base.html
georg.sinn-schirwitz a66e9a15e7 cosmetic change to base template:
moving separator
2025-08-30 13:27:17 +02:00

44 lines
1.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{ title }}</title>
<meta name="csrf-token" content="{{ csrf_token() }}" />
<link
rel="stylesheet"
href="{{ url_for('static', filename='styles.css') }}"
/>
{% block styles %}{% endblock %} {% block scripts %}{% endblock %}
</head>
<body>
{% block header %}
<header>
<h1><a href="/">{{ title or 'Admin' }}</a></h1>
<nav>
{% if username %}<span>Hi, {{ username }}</span> | {% endif %}
<a href="{{ url_for('index') }}">Home</a> |
<a href="{{ url_for('user_settings') }}">Preferences</a>
{% if current_user and current_user.is_admin %} |
<a href="{{ url_for('admin_taxonomy') }}">Taxonomy</a> |
<a href="{{ url_for('admin_users') }}">Users</a> {% endif %} {% if
session.get('username') %} |
<a href="{{ url_for('logout') }}">Logout</a> {% else %} |
<a href="{{ url_for('login') }}">Login</a>{% endif %}
</nav>
{% with messages = get_flashed_messages() %} {% if messages %}
<ul>
{% for m in messages %}
<li>{{ m }}</li>
{% endfor %}
</ul>
{% endif %} {% endwith %}
</header>
{% endblock %} {% block content %}{% endblock %}
<footer>
<p>&copy; 2025 Job Listings</p>
</footer>
{% block footer_scripts %}{% endblock %}
</body>
</html>