Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb050dbc44 | ||
|
|
28984e3ce6 |
No files matched your search
@@ -150,3 +150,29 @@ audio { width: 100%; }
|
|||||||
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 */
|
||||||
|
}
|
||||||
@@ -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 %}
|
||||||
Reference in new issue
Block a user