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