feat: show percentages
feat: show file size in MB
This commit is contained in:
1 parent
7ddb932a6c
commit
a9ccdca62c
5 files changed
+22
-16
No files matched your search
@@ -16,10 +16,10 @@
|
||||
<thead>
|
||||
<th></th>
|
||||
<th>Name</th>
|
||||
<th>Artist</th>
|
||||
<th>ID</th>
|
||||
<th>Bitrate (bit/s)</th>
|
||||
<th>Abtastrate (Hz)</th>
|
||||
<th>Dateigröße (MB)</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for s in songs %}
|
||||
@@ -28,10 +28,10 @@
|
||||
<a href="{{ url_for('main.admin_add_task', songId=s.id) }}">+</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>
|
||||
<td>{{ (s.original.size / 1000000) | round(2) }}</td>
|
||||
</tr>
|
||||
{% if s.edits %}
|
||||
{% for e in s.edits %}
|
||||
@@ -39,9 +39,9 @@
|
||||
<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>
|
||||
<td>{{ e.bitrate }} <span class="percentage">({{ (e.bitrate / s.original.bitrate * 100) | round(1) }}%)</span></td>
|
||||
<td>{{ e.sampling_rate }} <span class="percentage">({{ (e.sampling_rate / s.original.sampling_rate * 100) | round(1) }}%)</span></td>
|
||||
<td>{{ (e.size / 1000000) | round(2) }} <span class="percentage">({{ (e.size / s.original.size * 100) | round(1) }}%)</span></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Reference in new issue
Block a user