diaspora/app/views/albums/show.html.haml

30 lines
721 B
Text

%h1.big_text
.back
= link_to '⇧ albums', albums_path
= @album.name
-if current_user.owns? @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
="updated #{how_long_ago(@album)}"
-unless current_user.owns? @album
%h4= "by #{@album.person.real_name}"
#thumbnails
- for photo in @album_photos
.image_thumb
= link_to (image_tag photo.image.url(:thumb_medium)), object_path(photo)
#content_bottom
.back
= link_to "⇧ albums", albums_path
-if current_user.owns? @album
.button.right
= link_to 'Edit Album', edit_album_path(@album)