34 lines
1006 B
HTML
34 lines
1006 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>{% block title %}{% endblock %} - {{ localize("kanken_online") }}</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
|
{% block styles %}{% endblock %}
|
|
{% block scripts %}{% endblock %}
|
|
</head>
|
|
<body>
|
|
<nav>
|
|
<h1>{{ localize("kanken_online") }}</h1>
|
|
<ul>
|
|
{% if g.user %}
|
|
<li><span>{{ g.user['username'] }}</span>
|
|
<li><a href="{{ url_for('options') }}">{{ localize("options") }}</a>
|
|
<li><a href="{{ url_for('auth.logout') }}">{{ localize("log_out") }}</a>
|
|
{% else %}
|
|
<li><a href="{{ url_for('auth.register') }}">{{ localize("register") }}</a>
|
|
<li><a href="{{ url_for('auth.login') }}">{{ localize("log_in") }}</a>
|
|
{% 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> |