diaspora/app/views/albums/show.html.haml
2010-09-13 10:38:38 -07:00

43 lines
904 B
Text

:javascript
$(document).ready(function(){
$(".image_thumb img").load( function() {
$(this).fadeIn("slow");
});
});
= content_for :page_title do
= link_to @album.name, @album
- content_for :left_pane do
= render "shared/aspect_friends"
.album_id{:id => @album.id, :style => "display:hidden;"}
%h1.big_text
= @album.name
-if current_user.owns? @album
=render 'photos/new_photo'
.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'