mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 17:06:17 +00:00
ed526f1cd7
Mainly to allow to set the public flag, because most clients don't handle it
34 lines
919 B
HTML
Executable File
34 lines
919 B
HTML
Executable File
{% extends "layout.html" %}
|
|
{% block body %}
|
|
<h2>My playlists</h2>
|
|
{% if not mine.count() %}
|
|
<p>You don't have any playlists.</p>
|
|
{% else %}
|
|
<table>
|
|
<tr><th>Playlist</th><th>Tracks</th><th>Public</th><th></th></tr>
|
|
{% for p in mine %}
|
|
<tr>
|
|
<td><a href="{{ url_for('playlist_details', uid = p.id) }}">{{ p.name }}</a></td>
|
|
<td>{{ p.tracks|length }}</td>
|
|
<td><input type="checkbox" disabled="true" {% if p.public %}checked="true"{% endif %} /></td>
|
|
<td><a href="{{ url_for('playlist_delete', uid = p.id) }}">X</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
{% if others.count() %}
|
|
<h2>Others' playslits</h2>
|
|
<table>
|
|
<tr><th>Playlist</th><th>Owner</th><th>Tracks</th></tr>
|
|
{% for p in others %}
|
|
<tr>
|
|
<td><a href="{{ url_for('playlist_details', uid = p.id) }}">{{ p.name }}</a></td>
|
|
<td>{{ p.user.name }}</td>
|
|
<td>{{ p.tracks|length }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|