Add edited media report page and fix image versioning

- New route GET /players/<id>/edited-media-report with tabular report
- New template edited_media_report.html with User/Filename/Date/Link columns
- Launch Report button (green) next to View All Edited Media button
- Fix: on first edit, move original file to versionized folder as original_<name>
- Fix: content lookup fallback via PlayerEdit records and path regex
- Keep Content.filename pointing to latest edit for player playlist
This commit is contained in:
2026-07-21 09:56:14 +03:00
parent 2af04e1db3
commit 05194a19b6
7 changed files with 718 additions and 54 deletions
+25
View File
@@ -0,0 +1,25 @@
{% if player.deployment_status == 'deploying' %}
<span class="deploy-badge deploying" id="deploying-badge-{{ player.id }}">
<span class="spinner"></span>Deploying...
</span>
{% elif player.deployment_status == 'deployed' %}
<span class="deploy-badge deployed" title="{{ player.last_deployment_message or 'Deployed successfully' }}">
✅ Deployed
{% if player.last_deployment_at %}
<span class="deploy-timestamp">{{ player.last_deployment_at | localtime }}</span>
{% endif %}
</span>
{% elif player.deployment_status == 'failed' %}
<span class="deploy-badge failed deploy-tooltip" title="{{ player.last_deployment_message or 'Deployment failed' }}">
❌ Failed
{% if player.last_deployment_at %}
<span class="deploy-timestamp">{{ player.last_deployment_at | localtime }}</span>
{% endif %}
</span>
{% elif player.deployment_status == 'pending' %}
<span class="deploy-badge pending" title="Awaiting deployment">
⏳ Pending
</span>
{% else %}
<span class="text-muted"></span>
{% endif %}