<%= link_to image_tag( photo.path_modified_public("preview") ), [@album.collections.first, @album, photo] %> | <% if count / 4.0 == (count / 4.0).to_i %>
<%= @album.description %>
<% unless @album.photo_tags.empty? %>Tagged with: <% for tag in @album.photo_tags.map{|tag|tag.title}.sort %> <%= link_to tag, album_tag_photos_path(@album, tag )%> <% end %>
<% end %> <% if has_role?("admin") %><%= @album.address %>
<% end %> <% if has_role?("admin") %><%= @album.note %>
<% end %> <% content_for :action_links do %> <% if has_role?("admin") %> <%= link_to "PDF", album_path(@album, :format => 'pdf') %> | <%= link_to "Edit album", edit_album_path(@album) %> | <%= link_to "Edit all photos", edit_multiple_album_photos_path(@album) %> | <%= link_to "Edit untouched photos", untouched_album_photos_path(@album) %> | <%= link_to "Add photos", upload_album_photos_path(@album) %> <% end %> <% end %>