Compare commits

...
2 Commits
Author SHA1 Message Date
robin cb050dbc44 feat: add add button 2026-11-13 13:31:40 +01:00
robin 28984e3ce6 feat: sjow songs list 2026-11-13 13:24:29 +01:00
2 changed files with 66 additions and 1 deletions

No files matched your search

+26
View File
@@ -149,4 +149,30 @@ audio { width: 100%; }
color: var(--text); color: var(--text);
background: transparent; background: transparent;
border: 1px dashed var(--muted); border: 1px dashed var(--muted);
}
td.toggle {
width: 1.5em;
cursor: pointer;
text-align: center;
user-select: none;
height: 20px;
}
td.toggle a {
display: inline-flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
background-color: var(--accent);
color: var(--accent-text);
text-decoration: none;
border-radius: 4px;
cursor: pointer;
user-select: none;
}
td.toggle a:hover {
filter: brightness(1.1); /* optional: Hover-Effekt */
} }
+40 -1
View File
@@ -8,6 +8,45 @@
{% 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></th>
<th>Name</th>
<th>Artist</th>
<th>ID</th>
<th>Bitrate</th>
<th>Abtastrate</th>
</thead>
<tbody>
{% for s in songs %}
<tr>
<td class="toggle">
<a>+</a>
</td>
<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></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 %}