photomix/app/views/photos/show.html.erb
2009-06-09 00:30:22 +02:00

12 lines
379 B
Plaintext

<h1><%= @photo.title%></h1>
<%= image_tag @photo.path_modified_public("large") %>
<br/>
Tagged with: <%= @photo.tag_list %>
<p><%= @photo.description %></p>
<% if has_role?("admin") %>
<br /><%= link_to "Update photo details", edit_photo_path(@photo) %>
<% end %>
<br /><%= link_to "Back to #{@photo.album.title}", @photo.album %>
<br /><%= link_to "All albums", albums_path %>