separar las canciones que tienen karaoke en el todo

This commit is contained in:
Ales (Shagi) Zabala Alava 2020-04-27 18:42:50 +02:00
parent 2104f841c2
commit 7007196c50
1 changed files with 16 additions and 16 deletions

View File

@ -21,20 +21,20 @@
</table>
<h2>Publicadas</h2>
<table>
<thead>
<tr>
<th>Canción</th>
<th>Karaoke</th>
</tr>
</thead>
<tbody>
<h3>Karaoke</h3>
<ul>
{% for song in songs %}
<tr>
<td>{{ song.name }}</td>
<td>{{ song.metadata.karaoke|display_boolean }}</td>
</tr>
{% if song.metadata.karaoke %}
<li>{{ song.name }}</li>
{% endif %}
{% endfor %}
</tbody>
</table>
</ul>
<h3>SIN Karaoke</h3>
<ul>
{% for song in songs %}
{% if not song.metadata.karaoke %}
<li>{{ song.name }}</li>
{% endif %}
{% endfor %}
</ul>
{% endblock %}