1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-11-14 14:12:17 +00:00
supysonic/templates/layout.html

75 lines
2.1 KiB
HTML
Raw Normal View History

2014-03-02 17:31:32 +00:00
{#-
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/>.
-#}
2012-10-13 09:29:48 +00:00
<!DOCTYPE html>
<title>Supysonic</title>
2012-10-13 12:52:39 +00:00
<style>
2014-03-02 17:31:32 +00:00
/* 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;
}
2012-10-13 12:52:39 +00:00
.flash {
border: dashed 1px red;
padding: 2px;
margin: 10px;
}
.flash p {
margin: 0;
padding: 0;
}
</style>
2014-03-02 17:31:32 +00:00
<div id="wrap"><div id="main">
2012-10-13 09:29:48 +00:00
<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 %}
2014-03-02 17:31:32 +00:00
</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>
2012-10-13 09:29:48 +00:00