2009-06-11 13:05:09 +02:00
|
|
|
<h2>Collections</h2>
|
|
|
|
<div id="multipleimages">
|
2009-06-03 01:33:39 +02:00
|
|
|
<% for collection in @collections %>
|
2009-06-11 13:05:09 +02:00
|
|
|
<div class="thumb">
|
|
|
|
<h3><%= link_to collection.title, collection %></h3>
|
2009-06-12 01:04:57 +02:00
|
|
|
<%= render :partial => collection.albums.find(:first), :locals => {:photosize => 'collection'} %>
|
2009-06-11 13:05:09 +02:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2009-06-12 01:04:57 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if has_role?("admin") %>
|
|
|
|
<br /><%= link_to "New collection", new_collection_path %>
|
|
|
|
<% end %>
|