1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-13 21:52:18 +00:00
supysonic/templates/layout.html

32 lines
728 B
HTML
Raw Normal View History

2012-10-13 09:29:48 +00:00
<!DOCTYPE html>
<title>Supysonic</title>
2012-10-13 12:52:39 +00:00
<style>
.flash {
border: dashed 1px red;
padding: 2px;
margin: 10px;
}
.flash p {
margin: 0;
padding: 0;
}
</style>
2012-10-13 09:29:48 +00:00
<div class="page">
<h1>Supysonic</h1>
2012-10-13 12:52:39 +00:00
<p><a href="{{ url_for('index') }}">Home</a> |
{% if session.userid %}<a href="{{ url_for('playlist_index') }}">Playlists</a> | <a href="{{ url_for('user_profile') }}">{{ session.username }}</a> - <a href="{{ url_for('logout') }}">Log out</a>
{% else %}<a href="{{ url_for('login') }}">Log in</a>
{% endif %}</p>
2012-11-17 01:09:20 +00:00
2012-10-13 12:52:39 +00:00
{% if get_flashed_messages() %}
2012-10-13 09:29:48 +00:00
<div class="flash">
{% for message in get_flashed_messages() %}
2012-10-13 12:52:39 +00:00
<p>{{ message }}</p>
2012-10-13 09:29:48 +00:00
{% endfor %}
</div>
2012-10-13 12:52:39 +00:00
{% endif %}
2012-10-13 09:29:48 +00:00
{% block body %}{% endblock %}
</div>