diff options
| author | Ken D'Ambrosio <ken@jots.org> | 2026-05-12 17:26:06 +0000 |
|---|---|---|
| committer | Ken D'Ambrosio <ken@jots.org> | 2026-05-12 17:26:06 +0000 |
| commit | d58a77164dc37c445bc275d0bee5dbc7f06d7e7d (patch) | |
| tree | 495bde32ae4018f6cdcc9c850b0ce4d4c5f6c4f3 /views/album.erb | |
| parent | d006bb0d911c6ce08a20e2c10e30785ad559b439 (diff) | |
Show slideshow button for folders with media anywhere in hierarchy
- slideshow_view now uses all_media_entries for non-root dirs so the
slideshow traverses sub-albums instead of only direct files
- album.erb condition simplified: show launcher when albums OR media
entries exist (previously hidden for folders with only sub-albums)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'views/album.erb')
| -rw-r--r-- | views/album.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/views/album.erb b/views/album.erb index 3dc4fdb..8577bdb 100644 --- a/views/album.erb +++ b/views/album.erb @@ -10,7 +10,7 @@ <% end %> <h1><%= @title %></h1> <% if @desc %><p class="album-desc"><%= @desc %></p><% end %> - <% if @rel.empty? ? @albums.any? : @entries.any? { |e| %i[image video].include?(e[:type]) } %> + <% if @albums.any? || @entries.any? { |e| %i[image video].include?(e[:type]) } %> <div class="ss-launcher"> <a href="/slideshow/<%= @rel %>" id="ss-launch" data-base="/slideshow/<%= @rel %>" class="btn">Slideshow</a> <div class="ss-opts"> |
