photomix/app/views/collections/show.html.erb
Alexander Negoda 954e3b68ae upd
2012-07-29 02:33:03 +04:00

12 lines
501 B
Plaintext

<h2><%= @collection.title %></h2>
<p><%= @collection.description %></p>
<%= render :partial => 'albums/row_collections' %>
<%= content_for :action_links do %>
<% if current_user and current_user.has_role?("admin") %>
<li><%= link_to "PDF", collection_path(@collection, :format => 'pdf') %></li>
<li><%= link_to "Edit collection", edit_collection_path(@collection) %></li>
<li><%= link_to "New album", new_collection_album_path(@collection) %></li>
<% end %>
<% end %>