diaspora/app/views/albums/show.html.haml
2010-08-26 11:06:35 -07:00

36 lines
908 B
Text

- content_for :head do
= javascript_include_tag 'photos', 'jquery.html5_upload'
.album_id{:id => @album.id, :style => "display:hidden;"}
.back= link_to '⇧ albums', albums_path
%h1.big_text
= @album.name
-if current_user.owns? @album
.right
#add_photo_loader
= image_tag 'ajax-loader.gif'
= link_to 'Add Photos', '#new_photo_pane', :class => 'button', :id => "add_photo_button"
.yo{:style => "display:none;"}
#new_photo_pane
.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.url(:thumb_medium)), object_path(photo)
#content_bottom
.back
= link_to "⇧ albums", albums_path
-if current_user.owns? @album
.right
= link_to 'Edit Album', edit_album_path(@album), :class => 'button'