Dashboard: real file moves on approve/reject, full-image links, folder targets

This commit is contained in:
2026-08-08 09:19:04 +10:00
parent b7d7ef38b4
commit 10b4b0b2f1
4 changed files with 110 additions and 55 deletions

View File

@@ -1,14 +1,17 @@
{% set sha8 = item["sha256"][:8] %}
<div class="card" id="card-{{ sha8 }}">
{% if item["thumb"] %}
<img src="{{ item["thumb"] }}" loading="lazy" alt="">
{% else %}
<div style="aspect-ratio:1;display:flex;align-items:center;justify-content:center;color:#555;font-size:2rem;">❓</div>
{% endif %}
<a href="/file/{{ item["sha256"] }}" target="_blank">
{% if item["thumb"] %}
<img src="{{ item["thumb"] }}" loading="lazy" alt="">
{% else %}
<div style="aspect-ratio:1;display:flex;align-items:center;justify-content:center;color:#555;font-size:2rem;">❓</div>
{% endif %}
</a>
<div class="meta">
{{ item["path"].split("/")[-1] }}<br>
{{ item["name"] }}<br>
<span class="badge {{ item["status"] }}">{{ item["status"] }}</span>
<span style="color:#666"> · {{ item["source"] }}</span>
{% if item["size_mb"] %}<span style="color:#666"> · {{ item["size_mb"] }}MB</span>{% endif %}
</div>
<div class="actions">
<button class="approve" hx-post="/review/{{ item["sha256"] }}/approve" hx-target="#card-{{ sha8 }}" hx-swap="outerHTML">✅ Keep</button>