<%= @album.title %>

<%= render :partial => 'photos/row_collections' %>

<%= @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 %> <% unless @album.collections.empty? %>

Part of: <% for collection in @album.collections.order('title') %> <%= link_to collection.title, collection_path(collection) %> <% end %>

<% end %> <% if current_user and current_user.has_role?("admin") %>

<%= @album.address %>

<%= @album.note %>

<% end %> <%= content_for :action_links do %> <% if current_user and current_user.has_role?("admin") %> <% if params[:collection_id] %>
  • <%= link_to "PDF", collection_album_path(params[:collection_id], @album, :format => 'pdf') %>
  • <%= link_to "Edit album", edit_collection_album_path(params[:collection_id], @album) %>
  • <%= link_to "Edit all photos", edit_multiple_collection_album_photos_path(params[:collection_id], @album) %>
  • <%= link_to "Edit untouched photos", untouched_collection_album_photos_path(params[:collection_id], @album) %>
  • <%= link_to "Add photos", upload_collection_album_photos_path(params[:collection_id], @album) %>
  • <% else %>
  • <%= 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 %> <% end %>