summaryrefslogtreecommitdiffstats
path: root/views/album.erb
diff options
context:
space:
mode:
authorKen D'Ambrosio <ken@jots.org>2026-06-16 19:18:45 +0000
committerKen D'Ambrosio <ken@jots.org>2026-06-16 19:18:45 +0000
commit7eff38478b64cb67de9599f4239705a3afbb183a (patch)
tree1f30b958e182bd9946aa75208e6ba139b678ef5a /views/album.erb
parent612afca9f70e65de8b6511b7b0c008e563313a39 (diff)
Split album count into separate photo and video counts
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 <noreply@anthropic.com>
Diffstat (limited to 'views/album.erb')
-rw-r--r--views/album.erb2
1 files changed, 1 insertions, 1 deletions
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 @@
<div class="thumb-placeholder">📁</div>
<% end %>
</div>
- <div class="album-label"><%= a[:title] %><% if a[:count] && a[:count] > 0 %><span class="album-count"><%= a[:count] %></span><% end %></div>
+ <div class="album-label"><%= a[:title] %><% if (a[:photo_count] || a[:count]).to_i > 0 %><span class="album-count"><%= a[:photo_count] || a[:count] %></span><% end %><% if a[:video_count].to_i > 0 %><span class="album-count album-video-count">&#9654; <%= a[:video_count] %></span><% end %></div>
</a>
<% end %>
</div>