photomix/app/views/collections/show.html.erb

8 lines
320 B
Plaintext
Raw Normal View History

2009-06-03 22:12:11 +02:00
<h1><%= h @collection.title %></h1>
<p><%= h @collection.description %></p>
2009-06-03 01:33:39 +02:00
<%= render :partial => @collection.albums %>
2009-06-03 22:12:11 +02:00
<% if current_user && current_user.in_role?("admin") %>
2009-06-03 22:12:11 +02:00
<br /><%= link_to "Update collection", edit_collection_path(@collection) %>
<% end %>
2009-06-03 22:12:11 +02:00
<br /><%= link_to "All collections", collections_path %>