2009-06-11 13:05:09 +02:00
|
|
|
<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>
|
2010-04-13 21:10:40 +02:00
|
|
|
<%= link_to (image_tag collection.albums.find(:first).photos.first.file.collection.url ), collection_path(collection) unless collection.albums.empty? || collection.albums.find(:first).photos.empty? %>
|
2009-06-11 13:05:09 +02:00
|
|
|
</div>
|
|
|
|
<% end %>
|
2009-06-12 01:04:57 +02:00
|
|
|
</div>
|
|
|
|
|
2009-06-16 21:43:03 +02:00
|
|
|
<% content_for :action_links do %>
|
2009-06-12 01:04:57 +02:00
|
|
|
<% if has_role?("admin") %>
|
2009-06-30 21:24:06 +02:00
|
|
|
<%= link_to "New collection", new_collection_path %>
|
2009-06-16 21:43:03 +02:00
|
|
|
<% end %>
|
2009-06-12 01:04:57 +02:00
|
|
|
<% end %>
|