mirror of https://github.com/mitsuhiko/flask.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1015 B
33 lines
1015 B
15 years ago
|
<!doctype html>
|
||
|
<title>{% block title %}Welcome{% endblock %} | MiniTwit</title>
|
||
|
<link rel=stylesheet type=text/css href="{{ url_for('static', filename='style.css') }}">
|
||
|
<div class=page>
|
||
|
<h1>MiniTwit</h1>
|
||
|
<div class=navigation>
|
||
|
{% if g.user %}
|
||
|
<a href="{{ url_for('timeline') }}">my timeline</a> |
|
||
|
<a href="{{ url_for('public_timeline') }}">public timeline</a> |
|
||
|
<a href="{{ url_for('logout') }}">sign out [{{ g.user.username }}]</a>
|
||
|
{% else %}
|
||
|
<a href="{{ url_for('public_timeline') }}">public timeline</a> |
|
||
|
<a href="{{ url_for('register') }}">sign up</a> |
|
||
|
<a href="{{ url_for('login') }}">sign in</a>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{% with flashes = get_flashed_messages() %}
|
||
|
{% if flashes %}
|
||
|
<ul class=flashes>
|
||
|
{% for message in flashes %}
|
||
|
<li>{{ message }}
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
{% endif %}
|
||
|
{% endwith %}
|
||
|
<div class=body>
|
||
|
{% block body %}{% endblock %}
|
||
|
</div>
|
||
|
<div class=footer>
|
||
|
MiniTwit — A Flask Application
|
||
|
</div>
|
||
|
</div>
|