<%= h @collection.title %>

<%= h @collection.description %>

<% for album in @collection.albums %>
<%= render :partial => "photos/thumb", :locals => {:photo => album.photos.first } unless album.photos.empty? %>

<%= link_to album.title, collection_album_path(@collection, album) %>

<%= render :partial => "photos/thumb", :collection => album.photos.find(:all, :limit => 5, :offset => 1), :as => :photo %>
<% end %>
<% if has_role?("admin") %>
<%= link_to "Update collection", edit_collection_path(@collection) %> <% end %>
<%= link_to "All collections", collections_path %>