Collections

<% for collection in @collections %>

<%= link_to collection.title, collection %>

<%= link_to (image_tag collection.albums.find(:first).photos.first.path_modified_public('collection') ), collection_path(collection) unless collection.albums.empty? || collection.albums.find(:first).photos.empty? %>
<% end %>
<% content_for :action_links do %> <% if has_role?("admin") %> <%= link_to "New collection", new_collection_path %>

<% end %> <% end %>