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 %> result<%= @total == 1 ? '' : 's' %> <% if @total > @results.length %>(showing first <%= @results.length %>)<% end %>

<% if @results.empty? %>

No photos 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])}" %>
<%= ERB::Util.html_escape(r[:filename]) %>
<%= ERB::Util.html_escape(r[:filename]) %>
<% if r[:taken_at] %>
<%= ERB::Util.html_escape(r[:taken_at][0..9]) %>
<% end %> <% unless r[:people].empty? %>
<%= ERB::Util.html_escape(r[:people].join(', ')) %>
<% end %>
<% end %>
<% end %> <% end %> <% end %>