2009-08-14 13:55:22 +02:00
|
|
|
<h2><%= @photo.title%></h2>
|
2009-06-11 13:05:09 +02:00
|
|
|
|
|
|
|
<div id="fullimage">
|
|
|
|
<div id="navigation">
|
|
|
|
<p class="links">
|
2009-07-06 23:38:20 +02:00
|
|
|
<% unless @previous.nil? %>
|
2009-06-11 13:05:09 +02:00
|
|
|
<%= link_to "Previous", [ @photo.album.collections.first, @photo.album, @previous] %>
|
|
|
|
<% unless @next.nil? %>
|
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
<% unless @next.nil? %>
|
|
|
|
<%= link_to "Next", [ @photo.album.collections.first, @photo.album, @next] %>
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
</div>
|
2010-04-13 21:10:40 +02:00
|
|
|
<p><%= link_to_if @next, image_tag(@photo.file.single.url ), [ @photo.album.collections.first, @photo.album, @next] %></p>
|
2009-06-11 13:05:09 +02:00
|
|
|
</div>
|
2009-05-25 21:39:43 +02:00
|
|
|
|
|
|
|
<p><%= @photo.description %></p>
|
2009-06-29 00:33:48 +02:00
|
|
|
<p>Tagged with:
|
2009-06-30 21:24:06 +02:00
|
|
|
<% for tag in @photo.tags.map{|tag|tag.title}.sort %>
|
|
|
|
<%= link_to tag, tag_photos_path(tag) %>
|
2009-06-29 00:33:48 +02:00
|
|
|
<% end %>
|
2009-06-09 00:30:22 +02:00
|
|
|
|
2011-04-25 07:50:07 +02:00
|
|
|
<%= content_for :action_links do %>
|
2009-06-09 00:30:22 +02:00
|
|
|
<% if has_role?("admin") %>
|
2010-10-11 17:47:50 +02:00
|
|
|
<% if params[:collection_id] %>
|
|
|
|
<%= link_to "Edit photo", edit_collection_album_photo_path(params[:collection_id], params[:album_id], @photo) %>
|
|
|
|
<% else %>
|
2009-06-30 21:24:06 +02:00
|
|
|
<%= link_to "Edit photo", edit_photo_path(@photo) %>
|
2009-06-09 00:30:22 +02:00
|
|
|
<% end %>
|
2010-10-11 17:47:50 +02:00
|
|
|
<% end %>
|
2009-06-16 21:43:03 +02:00
|
|
|
<% end %>
|