diff options
| author | Ken D'Ambrosio <ken@jots.org> | 2026-05-14 22:59:59 +0000 |
|---|---|---|
| committer | Ken D'Ambrosio <ken@jots.org> | 2026-05-14 22:59:59 +0000 |
| commit | c76ea393777897e0c367e186d1a3b243193d8377 (patch) | |
| tree | b922795d65bcbea171ef6c2ddf6b3c80881123d2 /public | |
| parent | 6acd47c1ca27d705afe88b292a55a5170c038d2e (diff) | |
Hide transcoded originals from non-admins; mark them visually for admins
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 <noreply@anthropic.com>
Diffstat (limited to 'public')
| -rw-r--r-- | public/css/style.css | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |
