<% if albums.nil? or albums.empty? -%>

There were no albums found!

<% else -%> <% albums.each_with_index do |album, index| -%>
<%= album.name -%> (<%= album.photos.size -%> photos)

<% if album.album_thumbnail -%><% end -%>
<% end -%>
<% end -%>