2024-10-09 22:44:40 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
2024-10-14 10:49:16 +00:00
|
|
|
<title>{% block title %}{% endblock %} - {{ localize("kanken_online") }}</title>
|
2024-10-09 22:44:40 +00:00
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
2024-10-14 10:34:39 +00:00
|
|
|
{% block styles %}{% endblock %}
|
|
|
|
{% block scripts %}{% endblock %}
|
2024-10-09 22:44:40 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<nav>
|
2024-10-14 11:47:53 +00:00
|
|
|
<h1><a href="/">{{ localize("kanken_online") }}</a></h1>
|
2024-10-09 22:44:40 +00:00
|
|
|
<ul>
|
|
|
|
{% if g.user %}
|
|
|
|
<li><span>{{ g.user['username'] }}</span>
|
2024-10-14 10:49:16 +00:00
|
|
|
<li><a href="{{ url_for('options') }}">{{ localize("options") }}</a>
|
|
|
|
<li><a href="{{ url_for('auth.logout') }}">{{ localize("log_out") }}</a>
|
2024-10-09 22:44:40 +00:00
|
|
|
{% else %}
|
2024-10-14 10:49:16 +00:00
|
|
|
<li><a href="{{ url_for('auth.register') }}">{{ localize("register") }}</a>
|
|
|
|
<li><a href="{{ url_for('auth.login') }}">{{ localize("log_in") }}</a>
|
2024-10-09 22:44:40 +00:00
|
|
|
{% endif %}
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
<section class="content">
|
|
|
|
<header>
|
|
|
|
{% block header %}{% endblock %}
|
|
|
|
</header>
|
|
|
|
{% for message in get_flashed_messages() %}
|
|
|
|
<div class="flash">{{ message }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% block content %}{% endblock %}
|
|
|
|
</section>
|
|
|
|
</body>
|
|
|
|
</html>
|