1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-09-20 03:11:04 +00:00
supysonic/templates/layout.html

75 lines
2.1 KiB
HTML

{#-
This file is part of Supysonic.
Supysonic is a Python implementation of the Subsonic server API.
Copyright (C) 2013 Alban 'spl0k' Féron
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-#}
<!DOCTYPE html>
<title>Supysonic</title>
<style>
/* Sticky footer method from http://www.cssstickyfooter.com/ */
html, body { height: 100%; }
#wrap { min-height: 100%; }
#main {
overflow: auto;
padding-bottom: 3em;
}
#footer {
position: relative;
margin-top: -3em;
height: 3em;
clear: both;
font-size: 0.8em;
}
/* Opera fix */
body:before {
content: "";
height: 100%;
float: left;
width: 0;
margin-top: -32767px;
}
.flash {
border: dashed 1px red;
padding: 2px;
margin: 10px;
}
.flash p {
margin: 0;
padding: 0;
}
</style>
<div id="wrap"><div id="main">
<h1>Supysonic</h1>
<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>
{% if get_flashed_messages() %}
<div class="flash">
{% for message in get_flashed_messages() %}
<p>{{ message }}</p>
{% endfor %}
</div>
{% endif %}
{% block body %}{% endblock %}
</div></div>
<div id="footer">Supysonic <a href="https://github.com/spl0k/supysonic">source code</a> is available under the <a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU Affero General Public License version 3</a>.</div>