site/backend/app/templates/base.html

39 lines
817 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 %}
<title>{{ title }} - blog</title>
{% else %}
<title>Welcome to blog.</title>
{% endif %}
</head>
<body>
2024-08-01 10:33:45 +00:00
<div>
blgo:
<a href="{{ url_for('index') }}">home</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-03 09:14:20 +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
</div>
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>