site/backend/app/templates/base.html

43 lines
1.1 KiB
HTML
Raw Normal View History

2024-08-01 09:07:49 +00:00
<!doctype html>
<html>
<head>
2024-08-01 10:33:45 +00:00
<link rel="stylesheet" href="{{ url_for('static', filename='simple.css') }}">
2024-08-01 09:07:49 +00:00
{% if title %}
2024-08-08 18:28:57 +00:00
<title>{{ title }}</title>
2024-08-01 09:07:49 +00:00
{% else %}
2024-08-08 18:28:57 +00:00
<title>oily page</title>
2024-08-01 09:07:49 +00:00
{% endif %}
</head>
<body>
<header>
<nav>
2024-08-05 16:09:51 +00:00
<a {% block indexcurrent %}{% endblock %} href="{{ url_for('index') }}">home</a>
<a {% block explorecurrent %}{% endblock %} href="{{ url_for('explore') }}">explore</a>
2024-08-01 18:10:49 +00:00
{% if current_user.is_anonymous %}
2024-08-05 16:09:51 +00:00
<a {% block logincurrent %}{% endblock %} href="{{ url_for('login') }}">login</a>
2024-08-01 18:10:49 +00:00
{% else %}
2024-08-05 16:09:51 +00:00
<a {% block profilecurrent %}{% endblock %} href="{{ url_for('user', username=current_user.username) }}">profile</a>
2024-08-01 18:10:49 +00:00
<a href="{{ url_for('logout') }}">logout</a>
{% endif %}
2024-08-01 10:33:45 +00:00
</nav>
2024-08-08 15:14:44 +00:00
<h2>oily.dad</h2>
<h5>oilydada7ckiseinkbeathsefwgkvjrce743xy7x7iiybkuxh4vheead.onion</h5>
</header>
2024-08-01 09:07:49 +00:00
<hr>
2024-08-01 10:33:45 +00:00
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul>
{% for message in messages %}
2024-08-01 18:10:49 +00:00
<p class="notice">{{ message }}</p>
2024-08-01 10:33:45 +00:00
{% endfor %}
</ul>
{% endif %}
{% endwith %}
2024-08-01 09:07:49 +00:00
{% block content %}{% endblock %}
</body>
</html>