1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<!doctype html>
<head>
<title>{% block title %}Welcome{% endblock %} | Flask OAuth Example</title>
<link rel=stylesheet type=text/css href="{{ url_for('static',
filename='style.css') }}">
</head>
<body>
<h1>Flask OAuth Example</h1>
<ul class=navigation>
<li><a href="{{ url_for('index') }}">overview</a></li>
{% if g.user %}
<li><a href="{{ url_for('logout') }}">sign out [{{ g.user.screen_name}}]</a></li>
{% else %}
<li><a href="{{ url_for('login') }}">sign in</a></li>
{% endif %}
</ul>
{% for message in get_flashed_messages() %}
<p class=message>{{ message }}</p>
{% endfor %}
{% block body %}{% endblock %}
</body>
</html>
|