2009-05-25 21:39:43 +02:00
|
|
|
<h1><%= @photo.title%></h1>
|
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>
|
2009-07-28 01:31:35 +02:00
|
|
|
<p><%= link_to_if @next, image_tag(@photo.path_modified_public("single")), [ @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
|
|
|
|
2009-06-16 21:43:03 +02:00
|
|
|
<% content_for :action_links do %>
|
2009-06-09 00:30:22 +02:00
|
|
|
<% if has_role?("admin") %>
|
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 %>
|
2009-06-16 21:43:03 +02:00
|
|
|
<% end %>
|