15 lines
543 B
Plaintext
15 lines
543 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>
|
|
|
|
<% content_for :action_links do %>
|
|
<% if has_role?("admin") %>
|
|
<%= link_to "New collection", new_collection_path %></p>
|
|
<% end %>
|
|
<% end %> |