photomix/app/views/collections/index.html.erb
Espen Antonsen 4ea8b111e5 clear style
2009-06-16 01:27:02 +02:00

13 lines
521 B
Plaintext

<h2>Collections</h2>
<div id="multipleimages">
<% for collection in @collections %>
<div class="thumb">
<h3><%= link_to collection.title, collection %></h3>
<%= 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? %>
</div>
<% end %>
</div>
<% if has_role?("admin") %>
<p style="clear:both;"><%= link_to "New collection", new_collection_path %></p>
<% end %>