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

30 lines
834 B
Plaintext
Raw Normal View History

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>
<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:
<% 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") %>
<%= 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 %>