This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
2008-07-11 01:19:42 -04:00
|
|
|
<% if albums.nil? or albums.empty? -%>
|
|
|
|
<p><em><strong>There were no albums found!</strong></em></p>
|
|
|
|
<% else -%>
|
|
|
|
|
|
|
|
<% albums.each_with_index do |album, index| -%>
|
|
|
|
<div class="photo_album col_<%= (index + 1) % 3 -%>">
|
2008-07-23 07:08:48 -04:00
|
|
|
<div><a href="<%= url(:album, :id => album.name.gsub(/ /, '_')) -%>"><%= album.name -%></a> (<%= album.photos.size -%> photos)</div>
|
|
|
|
<br style="clear: both" />
|
2008-07-11 01:19:42 -04:00
|
|
|
<% if album.album_thumbnail -%><a href="<%= url(:album, :id => album.name.gsub(/ /, '_')) -%>"><img src="<%= thumbnail_photo_url(album.album_thumbnail) -%>" /></a><% end -%>
|
|
|
|
</div>
|
|
|
|
<% end -%>
|
|
|
|
<br style="clear: both" />
|
|
|
|
|
|
|
|
<% end -%>
|