From c76ea393777897e0c367e186d1a3b243193d8377 Mon Sep 17 00:00:00 2001 From: Ken D'Ambrosio Date: Thu, 14 May 2026 22:59:59 +0000 Subject: Hide transcoded originals from non-admins; mark them visually for admins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit update.rb records transcoded_to in album.json (even on re-runs where the MP4 already exists) so the marker survives across scans. app.rb filters files with transcoded_to from non-admin views. album.erb renders them greyed-out with an amber "⚠ original" badge in admin mode. admin/album.erb marks the edit-table row and shows the target filename under the original. Co-Authored-By: Claude Sonnet 4.6 --- public/css/style.css | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'public') diff --git a/public/css/style.css b/public/css/style.css index 41dfd0a..062b187 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -379,6 +379,14 @@ legend { padding: 0 8px; color: var(--text-dim); font-size: .85rem; } .files-table { font-size: .78rem; } } +/* ── Unplayable originals (admin-only) ─────────────────────────────────── */ +.unplayable-original { opacity: .45; } +.unplayable-badge { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.7); + color: #f0a500; font-size: .68rem; padding: 2px 5px; + border-radius: 3px; pointer-events: none; } +tr.original-file td { opacity: .5; } +.transcoded-label { display: block; font-size: .72rem; color: #c07000; font-style: italic; margin-top: 2px; } + /* ── Admin delete ──────────────────────────────────────────────────────── */ .delete-cell { text-align: center; } .delete-check { accent-color: #c0392b; width: 16px; height: 16px; cursor: pointer; } -- cgit v1.2.3