<meta charset="utf-8"> keeps the encoding when a page is saved locally. <html lang> now uses the language of the request instead of a fixed "en", which matters for screen readers, hyphenation and the browser's translation prompt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
73 lines
2.7 KiB
HTML
73 lines
2.7 KiB
HTML
{% import "macros.html" as macros %}
|
|
<!DOCTYPE html>
|
|
<html lang="{{ language }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{{ webpagetitle }} – MAX</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="robots" content="noindex" />
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='pure-min.css') }}">
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='base.css') }}">
|
|
<link href="{{ url_for('static', filename='fontawesome.min.css') }}" rel="stylesheet">
|
|
<link rel="icon" type="image/png" href="{{ url_for('favicon') }}">
|
|
</head>
|
|
<body>
|
|
<div class="header">
|
|
<div class="pure-g">
|
|
<div class="pure-u-1-3">
|
|
{% if back_text is defined %}
|
|
<a href="{{ back_url }}"><div class="side left">
|
|
{% if back_show_icon %}
|
|
<div>
|
|
<img src="{{ url_for('static', filename='arrow.png') }}">
|
|
</div>
|
|
{%- endif -%}
|
|
<div>
|
|
{{ back_text }}
|
|
</div>
|
|
</div></a>
|
|
{% endif %}
|
|
</div>
|
|
<div class="pure-u-1-3">
|
|
<a href="{{ url_for('own-user-detail') }}"><div class="main">
|
|
<div class="left">
|
|
</div><div class="logo">
|
|
<img src="{{ url_for('static', filename='eyes-small.jpg') }}">
|
|
</div><div class="title">
|
|
MAX
|
|
</div><div class="right">
|
|
</div>
|
|
</div></a>
|
|
</div>
|
|
<div class="pure-u-1-3">
|
|
<div class="side right">
|
|
{% if session['user_id'] %}
|
|
<div>
|
|
<span>{{ t("Hi") }} {{ auth_user.email }}!</span>
|
|
</div><div>
|
|
<form action="{{ url_for('logout') }}" method="post" class="logout-form inline-form">
|
|
<button type="submit" class="button-small pure-button">{{ t("Logout") }}</button>
|
|
{% include "csrf.html" %}
|
|
</form>
|
|
</div>
|
|
{% else %}
|
|
{{ t("You are not logged in") }}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content-wrapper">
|
|
<div class="content">
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
{% if session['user_id'] %}
|
|
<footer>
|
|
Version {{ version }}
|
|
</footer>
|
|
{% endif %}
|
|
</div>
|
|
</body>
|
|
</html> |