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

28 lines
776 B
Plaintext
Raw Normal View History

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">
<% unless @previous.nil?%>
<%= 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>
<p><%= image_tag @photo.path_modified_public("large") %></p>
</div>
2009-05-25 21:39:43 +02:00
<br/>
Tagged with: <%= @photo.tag_list %>
<p><%= @photo.description %></p>
2009-06-09 00:30:22 +02:00
<% if has_role?("admin") %>
2009-06-02 00:08:57 +02:00
<br /><%= link_to "Update photo details", edit_photo_path(@photo) %>
2009-06-09 00:30:22 +02:00
<% end %>
2009-06-03 01:33:39 +02:00
<br /><%= link_to "Back to #{@photo.album.title}", @photo.album %>
2009-05-25 21:39:43 +02:00
<br /><%= link_to "All albums", albums_path %>