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

47 lines
1.9 KiB
Plaintext
Raw Normal View History

2009-06-11 13:05:09 +02:00
<h2><%= @album.title %></h2>
2012-07-29 00:33:03 +02:00
<%= render :partial => 'photos/row_collections' %>
2009-06-11 13:05:09 +02:00
2009-06-05 14:18:03 +02:00
<p><%= @album.description %></p>
2009-07-06 23:38:20 +02:00
<% unless @album.photo_tags.empty? %>
2012-07-29 00:33:03 +02:00
<p>Tagged with:
<% for tag in @album.photo_tags.map { |tag| tag.title }.sort %>
<%= link_to tag, album_tag_photos_path(@album, tag) %>
<% end %>
</p>
2009-07-06 23:38:20 +02:00
<% end %>
2009-06-16 21:43:03 +02:00
2009-08-10 22:17:58 +02:00
<% unless @album.collections.empty? %>
2012-07-29 00:33:03 +02:00
<p>Part of:
<% for collection in @album.collections.order('title') %>
<%= link_to collection.title, collection_path(collection) %>
<% end %>
</p>
2009-08-10 22:17:58 +02:00
<% end %>
2012-07-29 00:33:03 +02:00
<% if current_user and current_user.has_role?("admin") %>
<p><%= @album.address %></p>
<p><%= @album.note %></p>
2009-06-05 14:18:03 +02:00
<% end %>
2009-05-25 21:39:43 +02:00
2009-08-10 22:17:58 +02:00
2011-04-25 07:54:40 +02:00
<%= content_for :action_links do %>
2012-07-29 00:33:03 +02:00
<% if current_user and current_user.has_role?("admin") %>
<% if params[:collection_id] %>
<li><%= link_to "PDF", collection_album_path(params[:collection_id], @album, :format => 'pdf') %></li>
<li><%= link_to "Edit album", edit_collection_album_path(params[:collection_id], @album) %></li>
<li><%= link_to "Edit all photos", edit_multiple_collection_album_photos_path(params[:collection_id], @album) %></li>
<li><%= link_to "Edit untouched photos", untouched_collection_album_photos_path(params[:collection_id], @album) %></li>
<li><%= link_to "Add photos", upload_collection_album_photos_path(params[:collection_id], @album) %></li>
<% else %>
<li><%= link_to "PDF", album_path(@album, :format => 'pdf') %></li>
<li><%= link_to "Edit album", edit_album_path(@album) %></li>
<li><%= link_to "Edit all photos", edit_multiple_album_photos_path(@album) %></li>
<li><%= link_to "Edit untouched photos", untouched_album_photos_path(@album) %></li>
<li><%= link_to "Add photos", upload_album_photos_path(@album) %></li>
<% end %>
<% end %>
2010-10-11 16:03:34 +02:00
<% end %>