2012-12-16 08:26:19 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
{% if title %}
|
|
|
|
<title>{{title}} - microblog</title>
|
|
|
|
{% else %}
|
|
|
|
<title>microblog</title>
|
|
|
|
{% endif %}
|
|
|
|
</head>
|
|
|
|
<body>
|
2012-12-16 08:30:41 +00:00
|
|
|
<div>Microblog:
|
|
|
|
<a href="{{ url_for('index') }}">Home</a>
|
|
|
|
{% if g.user.is_authenticated() %}
|
|
|
|
| <a href="{{ url_for('logout') }}">Logout</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2012-12-16 08:26:19 +00:00
|
|
|
<hr>
|
2012-12-16 08:28:52 +00:00
|
|
|
{% with messages = get_flashed_messages() %}
|
|
|
|
{% if messages %}
|
|
|
|
<ul>
|
|
|
|
{% for message in messages %}
|
|
|
|
<li>{{ message }} </li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
{% endwith %}
|
2012-12-16 08:26:19 +00:00
|
|
|
{% block content %}{% endblock %}
|
|
|
|
</body>
|
|
|
|
</html>
|