1
0
forked from finn/site
site/backend/app/templates/base.html

43 lines
927 B
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-04 20:14:58 +00:00
<title>{{ title }} - blogpage</title>
2024-08-01 09:07:49 +00:00
{% else %}
<title>Welcome to blog.</title>
{% endif %}
</head>
<body>
<header>
<nav>
2024-08-01 10:33:45 +00:00
<a href="{{ url_for('index') }}">home</a>
2024-08-04 20:14:58 +00:00
<a href="{{ url_for('explore') }}">explore</a>
2024-08-01 18:10:49 +00:00
{% if current_user.is_anonymous %}
2024-08-01 10:33:45 +00:00
<a href="{{ url_for('login') }}">login</a>
2024-08-01 18:10:49 +00:00
{% else %}
2024-08-04 20:14:58 +00:00
<a 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>
<h1>oily.dad</h1>
<h4>destroy me</h4>
</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>