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 --- views/album.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'views/album.erb') diff --git a/views/album.erb b/views/album.erb index 8577bdb..64bf763 100644 --- a/views/album.erb +++ b/views/album.erb @@ -54,7 +54,7 @@
<% @entries.each_with_index do |e, i| %> <% file_rel = @rel.empty? ? e[:name] : "#{@rel}/#{e[:name]}" %> -
<% end %> <% if e[:type] == :video && e[:duration] %><%= format_duration(e[:duration]) %><% end %> <% if e[:type] == :audio %><% end %> + <% if e[:transcoded_to] %>⚠ original<% end %>
<% if e[:caption] %>

<%= e[:caption] %>

-- cgit v1.2.3