<%= link_to_if @next, image_tag(@photo.file.single.url ), [ @photo.album.collections.first, @photo.album, @next] %>
<%= @photo.description %>
Tagged with: <% for tag in @photo.tags.map{|tag|tag.title}.sort %> <%= link_to tag, tag_photos_path(tag) %> <% end %> <% content_for :action_links do %> <% if has_role?("admin") %> <%= link_to "Edit photo", edit_photo_path(@photo) %> <% end %> <% end %>