editor.py aktualisiert

This commit is contained in:
bernd committed 2026-10-05 22:26:12 +02:00
1 parent e9923a8a8d
commit ffbfc53b2b
1 file changed
+7 -2
+7 -2
View File
@@ -1433,7 +1433,7 @@ INDEX_HTML = """
<div class="filter-info" id="filterInfo"></div>
{% if finished %}
<table id="finishedTable" class="finished-table">
<thead><tr><th>Zeitpunkt</th><th>Redner</th><th>Beschreibung</th><th>Veranstaltung</th><th>Dauer</th><th></th></tr></thead>
<thead><tr><th>Zeitpunkt</th><th>Redner</th><th>Beschreibung</th><th>Veranstaltung</th><th>Dauer</th><th>Wiedergabe</th><th></th></tr></thead>
<tbody>
{% for item in finished %}
<tr class="finished-row" data-ts="{{ item.sort_ts }}" data-artist="{{ item.artist }}" data-album="{{ item.album }}" data-search="{{ (item.filename ~ ' ' ~ item.artist ~ ' ' ~ item.title ~ ' ' ~ item.album)|lower }}">
@@ -1442,9 +1442,14 @@ INDEX_HTML = """
<td>{{ item.title or "–" }}</td>
<td>{{ item.album or "–" }}</td>
<td>{{ item.duration }}</td>
<td>
<audio controls preload="metadata">
<source src="/finished/{{ item.filename }}" type="audio/mpeg">
</audio>
</td>
<td class="actions">
<a class="button" href="{{ url_for('finished_file', filename=item.filename) }}">▶ Abspielen / Download</a>
<button class="button" onclick='editFinishedFile({{ item.filename|tojson }}, {{ item.datetime|tojson }}, {{ item.artist|tojson }}, {{ item.title|tojson }}, {{ item.album|tojson }})'>✎ Bearbeiten</button>
<a class="button" href="{{ url_for('finished_file', filename=item.filename) }}" download>Download</a>
<button class="button danger" onclick='deleteFile("finished", {{ item.filename|tojson }})'>✕ Löschen</button>
</td>
</tr>