mirror of
https://github.com/rmontanana/microblog.git
synced 2025-08-17 16:25:51 +00:00
36 lines
875 B
HTML
36 lines
875 B
HTML
<html>
|
|
<head>
|
|
{% if title %}
|
|
<title>{{ title }} - microblog</title>
|
|
{% else %}
|
|
<title>microblog</title>
|
|
{% endif %}
|
|
</head>
|
|
<body>
|
|
<div>
|
|
Microblog:
|
|
<a href="{{ url_for('index') }}">Home</a>
|
|
{% if current_user.is_anonymous %}
|
|
<a href="{{ url_for('login') }}">Login</a>
|
|
{% else %}
|
|
<a href="{{ url_for('user', username = current_user.username) }}">Profile</a>
|
|
<a href="{{ url_for('explore') }}">Explore</a>
|
|
<a href="{{ url_for('logout') }}">Logout</a>
|
|
{% endif %}
|
|
</div>
|
|
<hr />
|
|
{% with messages = get_flashed_messages() %}
|
|
{% if messages %}
|
|
<ul>
|
|
{% for message in messages %}
|
|
<li>{{ message }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% block content %}
|
|
|
|
{% endblock %}
|
|
</body>
|
|
</html>
|