Album Search

Searches filename, album, caption, date, and people names. Consecutive terms are AND'd. Operators: AND OR NOT. Example: ken OR carol AND NOT vacation

<% if @search_query && !@search_query.empty? %> <% if @results %>

<%= @total %> album<%= @total == 1 ? '' : 's' %> matched

<% if @results.empty? %>

No albums matched "<%= ERB::Util.html_escape(@search_query) %>".

<% else %>
<% @results.each do |r| %> <% album_url = r[:dir_rel].empty? ? '/browse/' : "/browse/#{ERB::Util.html_escape(r[:dir_rel])}" %> <% cover_rel = r[:dir_rel].empty? ? r[:cover] : "#{r[:dir_rel]}/#{r[:cover]}" %>
<% if r[:cover] %> <%= ERB::Util.html_escape(r[:title]) %> <% else %>
📁
<% end %>
<%= ERB::Util.html_escape(r[:title]) %><%= r[:count] %>
<% end %>
<% end %> <% end %> <% end %>