feat: sjow songs list

This commit is contained in:
robin committed 2026-11-13 13:24:29 +01:00
1 parent cf71bdf928
commit 28984e3ce6
1 file changed
+35 -1
+35 -1
View File
@@ -8,6 +8,40 @@
{% block admin_content %} {% block admin_content %}
{{ songs }} {% if not songs %}
<p class="empty">Noch keine Unteraufgabe vorhanden.</p>
{% else %}
<div class="table-wrap">
<table>
<thead>
<th>Name</th>
<th>Artist</th>
<th>ID</th>
<th>Bitrate</th>
<th>Abtastrate</th>
</thead>
<tbody>
{% for s in songs %}
<tr>
<td>{{ s.name }}</td>
<td>{{ s.artist }}</td>
<td>{{ s.id }}</td>
<td>{{ s.original.bitrate }}</td>
<td>{{ s.original.sampling_rate }}</td>
</tr>
{% if s.edits %}
{% for e in s.edits %}
<tr class="sub-row">
<td></td>
<td></td>
<td></td>
<td>{{ e.bitrate }} ({{ (e.bitrate / s.original.bitrate * 100) | round(1) }}%)</td>
<td>{{ e.sampling_rate }} ({{ (e.sampling_rate / s.original.sampling_rate * 100) | round(1) }}%)</td>
</tr>
{% endfor %}
{% endif %}
{% endfor %}
</tbody>
{% endif %}
{% endblock %} {% endblock %}