35 lines
794 B
Text
35 lines
794 B
Text
%h1.big_text
|
|
.back
|
|
= link_to "⇧ #{@album.name}", album_path(@album)
|
|
= @photo.image
|
|
|
|
.button.right
|
|
= link_to 'Edit Photo', edit_photo_path(@photo)
|
|
|
|
.sub_header
|
|
= link_to "full size", @photo.image.url
|
|
|
|
%div{:id => @photo.id}
|
|
|
|
#show_photo
|
|
= linked_scaled_photo @photo, @album
|
|
|
|
.caption
|
|
= @photo.caption
|
|
|
|
#next_prev_links
|
|
= link_to_prev @photo, @album
|
|
|
|
|
= link_to_next @photo, @album
|
|
|
|
#content_bottom
|
|
.back
|
|
= link_to "⇧ #{@album.name}", album_path(@album)
|
|
-if current_user.owns? @album
|
|
.button.right
|
|
= link_to 'Delete Photo', @photo, :confirm => 'Are you sure?', :method => :delete
|
|
|
|
%h4{:class => "show_post_comments"}
|
|
= "comments (#{@photo.comments.count})"
|
|
= render "comments/comments", :post => @photo
|
|
|