13 lines
521 B
Plaintext
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 %> |