From 21223ec9cc0dcd8c3a5d62478f9b12785f6790a9 Mon Sep 17 00:00:00 2001 From: Ken D'Ambrosio Date: Sat, 9 May 2026 15:39:34 +0000 Subject: Add live album filter search box MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Typing in the search box instantly hides non-matching album cards. Shown only when an album has more than 4 sub-albums (no point otherwise). Pure client-side — no server round-trips. Co-Authored-By: Claude Sonnet 4.6 --- views/album.erb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'views') diff --git a/views/album.erb b/views/album.erb index 077e119..03eb3bb 100644 --- a/views/album.erb +++ b/views/album.erb @@ -20,7 +20,10 @@ <% unless @albums.empty? %>
<% if @entries.any? %><% end %> -
+ <% if @albums.length > 4 %> + + <% end %> +
<% @albums.each do |a| %> <% href = @rel.empty? ? "/browse/#{a[:name]}" : "/browse/#{@rel}/#{a[:name]}" %> -- cgit v1.2.3