diaspora/app/views/photos/show.html.haml
2010-08-13 23:20:39 -07:00

32 lines
790 B
Text

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