From 7eff38478b64cb67de9599f4239705a3afbb183a Mon Sep 17 00:00:00 2001 From: Ken D'Ambrosio Date: Tue, 16 Jun 2026 19:18:45 +0000 Subject: Split album count into separate photo and video counts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace media_count helper with media_counts returning {photos, videos}. Album overview shows photo count as before, plus a coloured ▶ N badge only when an album (or its sub-albums) contains videos. Co-Authored-By: Claude Sonnet 4.6 --- views/album.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/album.erb') diff --git a/views/album.erb b/views/album.erb index d13ced9..4f261c4 100644 --- a/views/album.erb +++ b/views/album.erb @@ -41,7 +41,7 @@
📁
<% end %> -
<%= a[:title] %><% if a[:count] && a[:count] > 0 %><%= a[:count] %><% end %>
+
<%= a[:title] %><% if (a[:photo_count] || a[:count]).to_i > 0 %><%= a[:photo_count] || a[:count] %><% end %><% if a[:video_count].to_i > 0 %>▶ <%= a[:video_count] %><% end %>
<% end %> -- cgit v1.2.3