mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-23 01:16:18 +00:00
Add some style to web frontend
This commit is contained in:
parent
ac851f04bf
commit
b53c33f92c
@ -14,16 +14,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#loginform > div {
|
#loginform > div {
|
||||||
margin-bottom: 25px;
|
margin-bottom: 20px;
|
||||||
}
|
|
||||||
|
|
||||||
#loginform > div:first-child {
|
|
||||||
margin-top: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#loginform > div:last-child {
|
|
||||||
margin-top: 10px;
|
|
||||||
margin-bottom: 0px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#adduserform label {
|
#adduserform label {
|
||||||
@ -35,7 +26,7 @@ body {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-header {
|
.first-header {
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,9 +22,8 @@
|
|||||||
<li class="active"><a href="{{ url_for('folder_index') }}">Folders <span
|
<li class="active"><a href="{{ url_for('folder_index') }}">Folders <span
|
||||||
class="sr-only">(current)</span></a></li>
|
class="sr-only">(current)</span></a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page-header">
|
<div class="page-header first-header">
|
||||||
<h2>Add Folder</h2>
|
<h2>Add Folder</h2>
|
||||||
</div>
|
</div>
|
||||||
<form method="post">
|
<form method="post">
|
||||||
|
@ -22,9 +22,8 @@
|
|||||||
<li class="active"><a href="{{ url_for('user_index') }}">Users <span
|
<li class="active"><a href="{{ url_for('user_index') }}">Users <span
|
||||||
class="sr-only">(current)</span></a></li>
|
class="sr-only">(current)</span></a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page-header">
|
<div class="page-header first-header">
|
||||||
<h2>Add User</h2>
|
<h2>Add User</h2>
|
||||||
</div>
|
</div>
|
||||||
<form id="adduserform" method="post">
|
<form id="adduserform" method="post">
|
||||||
|
@ -21,12 +21,10 @@
|
|||||||
{% block navbar_profile %}
|
{% block navbar_profile %}
|
||||||
<li class="active"><a href="{{ url_for('user_profile') }}">{{ session.username }} <span class="sr-only">(current)</span></a></li>
|
<li class="active"><a href="{{ url_for('user_profile') }}">{{ session.username }} <span class="sr-only">(current)</span></a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page-header">
|
<div class="page-header first-header">
|
||||||
<h2>{{ user.name }}</h2>
|
<h2>{{ user.name }}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="sr-only" for="mail">eMail</label>
|
<label class="sr-only" for="mail">eMail</label>
|
||||||
|
@ -21,12 +21,10 @@
|
|||||||
{% block navbar_profile %}
|
{% block navbar_profile %}
|
||||||
<li class="active"><a href="{{ url_for('user_profile') }}">{{ session.username }} <span class="sr-only">(current)</span></a></li>
|
<li class="active"><a href="{{ url_for('user_profile') }}">{{ session.username }} <span class="sr-only">(current)</span></a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page-header">
|
<div class="page-header first-header">
|
||||||
<h2>{{ user }}</h2>
|
<h2>{{ user }}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label class="sr-only" for="current">Current password</label>
|
<label class="sr-only" for="current">Current password</label>
|
||||||
@ -52,4 +50,3 @@
|
|||||||
<input type="submit" class="btn btn-default" />
|
<input type="submit" class="btn btn-default" />
|
||||||
</form>
|
</form>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -22,9 +22,8 @@
|
|||||||
<li class="active"><a href="{{ url_for('folder_index') }}">Folders <span
|
<li class="active"><a href="{{ url_for('folder_index') }}">Folders <span
|
||||||
class="sr-only">(current)</span></a></li>
|
class="sr-only">(current)</span></a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page-header">
|
<div class="page-header first-header">
|
||||||
<h2>Music folders</h2>
|
<h2>Music folders</h2>
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-striped table-hover">
|
<table class="table table-striped table-hover">
|
||||||
|
@ -22,15 +22,13 @@
|
|||||||
<li class="active"><a href="{{ url_for('index') }}">Home <span
|
<li class="active"><a href="{{ url_for('index') }}">Home <span
|
||||||
class="sr-only">(current)</span></a></li>
|
class="sr-only">(current)</span></a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page-header">
|
<div class="page-header first-header">
|
||||||
<h2>Welcome to Supysonic!</h2>
|
<h2>Welcome to Supysonic!</h2>
|
||||||
</div>
|
</div>
|
||||||
<p>There's nothing much to see here. If you want to listen to some music,
|
<p>There's nothing much to see here. If you want to listen to some music,
|
||||||
you'll have to use one of the available clients. Here's a small list of
|
you'll have to use one of the available clients. Here's a small list of
|
||||||
clients that have been tested.</p>
|
clients that have been tested.</p>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
@ -64,11 +62,8 @@ clients that have been tested.</p>
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>For a more complete list, check the <a href="http://www.subsonic.org/pages/apps.jsp">Subsonic website</a>.</p>
|
<p>For a more complete list, check the <a href="http://www.subsonic.org/pages/apps.jsp">Subsonic website</a>.</p>
|
||||||
|
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<h2 class="panel-title text-center">Stats</h2>
|
<h2 class="panel-title text-center">Stats</h2>
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
class="sr-only">(current)</span></a></li>
|
class="sr-only">(current)</span></a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page-header">
|
<div class="page-header first-header">
|
||||||
<h2>Import users</h2>
|
<h2>Import users</h2>
|
||||||
</div>
|
</div>
|
||||||
<div class="alert alert-warning" role="alert">
|
<div class="alert alert-warning" role="alert">
|
||||||
|
@ -25,18 +25,24 @@
|
|||||||
<div class="panel-title text-center">Log in</div>
|
<div class="panel-title text-center">Log in</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body" >
|
<div class="panel-body" >
|
||||||
<form id="loginform" class="form-horizontal" method="post">
|
<form id="loginform" method="post">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="sr-only" for="user">User</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
|
<div class="input-group-addon"><span class="glyphicon glyphicon-user"></span></div>
|
||||||
<input type="text" class="form-control" id="user" name="user" value="{{ request.form.user }}" placeholder="User" />
|
<input type="text" class="form-control" id="user" name="user" value="{{ request.form.user }}" placeholder="User" />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="sr-only" for="password">Password</label>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
|
<div class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></div>
|
||||||
<input type="password" class="form-control" id="password" name="password" placeholder="Password" />
|
<input type="password" class="form-control" id="password" name="password" placeholder="Password" />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<!-- Button -->
|
<!-- Button -->
|
||||||
<div class="col-sm-12 controls">
|
<div class="push-left">
|
||||||
<button type="submit" class="btn btn-primary pull-right"><i class="glyphicon glyphicon-log-in"></i> Log in</button>
|
<button type="submit" class="btn btn-primary pull-right"><i class="glyphicon glyphicon-log-in"></i> Log in</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -22,9 +22,8 @@
|
|||||||
<li class="active"><a href="{{ url_for('playlist_index') }}">Playlists <span
|
<li class="active"><a href="{{ url_for('playlist_index') }}">Playlists <span
|
||||||
class="sr-only">(current)</span></a></li>
|
class="sr-only">(current)</span></a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page-header">
|
<div class="page-header first-header">
|
||||||
<h2>Playlist "{{ playlist.name }}"</h2>
|
<h2>Playlist "{{ playlist.name }}"</h2>
|
||||||
</div>
|
</div>
|
||||||
{% if playlist.user_id|str == session.get('userid') %}
|
{% if playlist.user_id|str == session.get('userid') %}
|
||||||
@ -56,4 +55,3 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -22,9 +22,8 @@
|
|||||||
<li class="active"><a href="{{ url_for('playlist_index') }}">Playlists <span
|
<li class="active"><a href="{{ url_for('playlist_index') }}">Playlists <span
|
||||||
class="sr-only">(current)</span></a></li>
|
class="sr-only">(current)</span></a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page-header">
|
<div class="page-header first-header">
|
||||||
<h2>My playlists</h2>
|
<h2>My playlists</h2>
|
||||||
</div>
|
</div>
|
||||||
{% if not mine.count() %}
|
{% if not mine.count() %}
|
||||||
@ -70,4 +69,3 @@
|
|||||||
</table>
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -21,13 +21,11 @@
|
|||||||
{% block navbar_profile %}
|
{% block navbar_profile %}
|
||||||
<li class="active"><a href="{{ url_for('user_profile') }}">{{ session.username }} <span class="sr-only">(current)</span></a></li>
|
<li class="active"><a href="{{ url_for('user_profile') }}">{{ session.username }} <span class="sr-only">(current)</span></a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page-header">
|
<div class="page-header first-header">
|
||||||
<h2>{{ user.name }}{% if user.admin %} <small><span class="glyphicon
|
<h2>{{ user.name }}{% if user.admin %} <small><span class="glyphicon
|
||||||
glyphicon-certificate" data-toggle="tooltip" data-placement="right" title="You're an admin!"></span></small>{% endif %}</h2>
|
glyphicon-certificate" data-toggle="tooltip" data-placement="right" title="You're an admin!"></span></small>{% endif %}</h2>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
<form>
|
<form>
|
||||||
@ -69,9 +67,7 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<a href="{{ url_for('change_password') }}" class="btn btn-default">Change password</a></li>
|
<a href="{{ url_for('change_password') }}" class="btn btn-default">Change password</a></li>
|
||||||
|
|
||||||
{% if clients.count() %}
|
{% if clients.count() %}
|
||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h2>Clients</h2>
|
<h2>Clients</h2>
|
||||||
@ -81,9 +77,8 @@ transcoding or downsampling with one of them (for instance using a low
|
|||||||
bitrate on mobile connections to reduce used bandwidth), but the client
|
bitrate on mobile connections to reduce used bandwidth), but the client
|
||||||
doesn't provide options to do so, you can set default values here. They'll
|
doesn't provide options to do so, you can set default values here. They'll
|
||||||
only be used if no transcoding/downsampling is requested by the client.</p>
|
only be used if no transcoding/downsampling is requested by the client.</p>
|
||||||
|
|
||||||
<form method="post">
|
<form method="post">
|
||||||
<table id="clients" class="table table-striped table-hover">
|
<table id="clients" class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr><th>Client</th><th>Format</th><th>Max bitrate</th><th>Forget</th></tr>
|
<tr><th>Client</th><th>Format</th><th>Max bitrate</th><th>Forget</th></tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -110,4 +105,3 @@ only be used if no transcoding/downsampling is requested by the client.</p>
|
|||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -22,9 +22,8 @@
|
|||||||
<li class="active"><a href="{{ url_for('user_index') }}">Users <span
|
<li class="active"><a href="{{ url_for('user_index') }}">Users <span
|
||||||
class="sr-only">(current)</span></a></li>
|
class="sr-only">(current)</span></a></li>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="page-header">
|
<div class="page-header first-header">
|
||||||
<h2>Users</h2>
|
<h2>Users</h2>
|
||||||
</div>
|
</div>
|
||||||
<table class="table table-striped table-hover">
|
<table class="table table-striped table-hover">
|
||||||
@ -39,7 +38,6 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="btn-toolbar" role="toolbar">
|
<div class="btn-toolbar" role="toolbar">
|
||||||
<a href="{{ url_for('add_user') }}" class="btn btn-default">Add</a>
|
<a href="{{ url_for('add_user') }}" class="btn btn-default">Add</a>
|
||||||
<a href="{{ url_for('export_users') }}" class="btn btn-default">Export</a>
|
<a href="{{ url_for('export_users') }}" class="btn btn-default">Export</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user