<%= @album.title %>
<% for photo in @album.photos %>
<%= link_to image_tag( photo.path_modified_public("album") ), photo %>
<% end %>
<%= @album.description %>
<% if has_permission?("see_album_note") %>
<%= @album.note %>
<% end %>
<% if has_role?("admin") %>
<%= link_to "Update album", edit_album_path(@album) %>
<%= link_to "Update photos", edit_multiple_album_photos_path(@album) %>
<%= link_to "Upload photos", upload_album_photos_path(@album) %>
<% end %>
<%= link_to "All albums", albums_path %>