2012-10-13 09:29:48 +00:00
|
|
|
{% extends "layout.html" %}
|
|
|
|
{% block body %}
|
2012-11-16 15:59:09 +00:00
|
|
|
<p><a href="{{ url_for('user_index') }}">Users</a></p>
|
2012-10-13 09:29:48 +00:00
|
|
|
|
|
|
|
<h2>Music folders</h2>
|
|
|
|
<table>
|
2012-10-13 12:53:09 +00:00
|
|
|
<tr><th>Name</th><th>Path</th><th></th><th></th></tr>
|
2012-10-13 09:29:48 +00:00
|
|
|
{% for folder in folders %}
|
2012-10-13 12:53:09 +00:00
|
|
|
<tr>
|
|
|
|
<td>{{ folder.name }}</td><td>{{ folder.path }}</td><td><a href="{{ url_for('del_folder', id = folder.id) }}">X</a></td>
|
|
|
|
<td><a href="{{ url_for('scan_folder', id = folder.id) }}">Scan</a></td>
|
|
|
|
</tr>
|
2012-10-13 09:29:48 +00:00
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2012-10-13 12:53:09 +00:00
|
|
|
<a href="{{ url_for('add_folder') }}">Add</a> <a href="{{ url_for('scan_folder') }}">Scan all</a>
|
|
|
|
|
|
|
|
<h2>Artists</h2>
|
|
|
|
<table>
|
|
|
|
<tr><th>Id</th><th>Name</th></tr>
|
|
|
|
{% for artist in artists %}
|
|
|
|
<tr><td>{{ artist.id }}</td><td>{{ artist.name }}</td></tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<h2>Albums</h2>
|
|
|
|
<table>
|
|
|
|
<tr><th>Artist</th><th>Album</th></tr>
|
|
|
|
{% for album in albums %}
|
|
|
|
<tr><td>{{ album.artist.name }}</td><td>{{ album.name }}</td></tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
2012-10-13 09:29:48 +00:00
|
|
|
{% endblock %}
|