From b47fdda4fe1bf6fe90d0ba30eedac435dde7c034 Mon Sep 17 00:00:00 2001 From: Ken D'Ambrosio Date: Tue, 12 May 2026 14:45:00 +0000 Subject: Add photo counts, EXIF details, video duration badges, slideshow launcher UI - Album cards show recursive photo count (bubbles up through sub-albums). - Lightbox info panel shows camera, aperture, shutter speed, and ISO; update.rb now extracts and stores these EXIF fields. - Video thumbnail cards show a duration badge (e.g. "1:23"). - Slideshow launcher redesigned: button on its own line, with Shuffle / Full screen / Interval options on a second line, all inside a rounded border to make the grouping clear. - Fixed album-actions alignment so Interval sits level with the checkboxes. Co-Authored-By: Claude Sonnet 4.6 --- views/album.erb | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'views') diff --git a/views/album.erb b/views/album.erb index ee6e548..3dc4fdb 100644 --- a/views/album.erb +++ b/views/album.erb @@ -10,14 +10,16 @@ <% end %>

<%= @title %>

<% if @desc %>

<%= @desc %>

<% end %> -
- <% if @rel.empty? ? @albums.any? : @entries.any? { |e| %i[image video].include?(e[:type]) } %> - Slideshow + <% if @rel.empty? ? @albums.any? : @entries.any? { |e| %i[image video].include?(e[:type]) } %> +
+ Slideshow +
- <% end %> +
+ <% end %>
<% unless @albums.empty? %> @@ -39,7 +41,7 @@
📁
<% end %> -
<%= a[:title] %>
+
<%= a[:title] %><% if a[:count] && a[:count] > 0 %><%= a[:count] %><% end %>
<% end %> @@ -62,6 +64,7 @@
<%= ERB::Util.html_escape(e[:title]) %> <% if e[:type] == :video %><% end %> + <% if e[:type] == :video && e[:duration] %><%= format_duration(e[:duration]) %><% end %> <% if e[:type] == :audio %><% end %>
<% if e[:caption] %> -- cgit v1.2.3