photomix/app/views/photos/show.html.erb
2009-06-16 21:43:03 +02:00

27 lines
757 B
Plaintext

<h1><%= @photo.title%></h1>
<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("single") %></p>
</div>
<p><%= @photo.description %></p>
<p>Tagged with: <%= @photo.tags.map {|tag| (link_to tag.title, tag_photos_path(tag) ) + " " } %></p>
<% content_for :action_links do %>
<% if has_role?("admin") %>
<br /><%= link_to "Edit photo", edit_photo_path(@photo) %>
<% end %>
<% end %>