feat: add per-song MP3 download buttons to admin request page

Adds an admin download route (/admin/request/<rid>/download-song/<version>)
and Download buttons next to Version A and Version B in section 2 (Songs),
shown only when the MP3 exists on disk. Bumps version to 0.9.2.
This commit is contained in:
Troll (Hermes Agent) 2026-09-20 02:49:01 +00:00
parent 530451cfef
commit be85a88543
5 changed files with 34 additions and 3 deletions

View file

@ -313,6 +313,9 @@
<span class="status-badge missing">Not ready</span>
{% endif %}
</label>
{% if req.song_a_path and file_exists(req.song_a_path) %}
<a href="{{ url_for('admin_download_song', rid=req.id, version='a') }}" class="button-link song-download">⬇ Download</a>
{% endif %}
</div>
<div class="song-row">
<input type="checkbox" id="delete_b" name="delete_song" value="b" {% if not (req.song_b_path and file_exists(req.song_b_path)) %}disabled{% endif %}>
@ -326,6 +329,9 @@
<span class="status-badge missing">Not ready</span>
{% endif %}
</label>
{% if req.song_b_path and file_exists(req.song_b_path) %}
<a href="{{ url_for('admin_download_song', rid=req.id, version='b') }}" class="button-link song-download">⬇ Download</a>
{% endif %}
</div>
<div class="actions">
<button type="submit" class="button-danger" onclick="return confirm('Delete selected song files? This will reset the request to Prompt Ready.')">Delete Selected Songs</button>