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() %}
|
2012-12-16 08:31:21 +00:00
|
|
|
| <a href="{{ url_for('user', nickname = g.user.nickname) }}">Your Profile</a>
|
2012-12-16 08:35:16 +00:00
|
|
|
| <form style="display: inline;" action="{{url_for('search')}}" method="post" name="search">{{g.search_form.hidden_tag()}}{{g.search_form.search(size=20)}}<input type="submit" value="Search"></form>
|
2012-12-16 08:30:41 +00:00
|
|
|
| <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>
|