26 lines
607 B
Text
26 lines
607 B
Text
%h1.big_text
|
|
.back
|
|
= link_to '⇧ albums', albums_path
|
|
|
|
= @album.name
|
|
|
|
-if mine? @album
|
|
.button.right#add_photos_button
|
|
= link_to 'add photos', '#'
|
|
|
|
#add_photo_box.contextual_pane
|
|
= render "photos/new_photo", :photo => @photo, :album => @album
|
|
|
|
.sub_header
|
|
="last updated: #{how_long_ago(@album)}"
|
|
|
|
-unless mine? @album
|
|
%h4= 'by ' + @album.person.real_name
|
|
|
|
|
|
- for photo in @album_photos
|
|
= link_to (image_tag photo.image.url(:thumb_medium)), object_path(photo)
|
|
|
|
-if mine? @album
|
|
%p
|
|
= link_to "Delete Album", @album, :confirm => 'Are you sure?', :method => :delete
|