11 lines
431 B
Plaintext
11 lines
431 B
Plaintext
<% if photos.nil? or photos.empty? %>
|
|
<p><em><strong>There were no photos found!</strong></em></p>
|
|
<% else -%>
|
|
|
|
<% photos.each_with_index do |photo, idx| -%>
|
|
<div class="photo col_<%= (idx + 1) % 3 -%>"><a href="<%= url(:photo, photo) -%>" rel="nofollow"><img src="<%= thumbnail_photo_url(photo) -%>" /></a></div>
|
|
<% if (idx + 1) % 3 == 0 or photos.last == photo -%><br style="clear:both" /><% end -%>
|
|
<% end -%>
|
|
|
|
<% end -%>
|