43 lines
1 KiB
Text
43 lines
1 KiB
Text
-# Copyright (c) 2010, Diaspora Inc. This file is
|
|
-# licensed under the Affero General Public License version 3. See
|
|
-# the COPYRIGHT file.
|
|
|
|
|
|
:javascript
|
|
$(document).ready(function(){
|
|
$(".image_thumb img").load( function() {
|
|
$(this).fadeIn("slow");
|
|
});
|
|
});
|
|
|
|
= content_for :page_title do
|
|
= link_to "◂ Albums", albums_path(:aspect => @aspect)
|
|
|
|
- content_for :left_pane do
|
|
= render "shared/aspect_friends"
|
|
|
|
- content_for :publish do
|
|
%h1
|
|
= @album.name
|
|
="updated #{how_long_ago(@album)}"
|
|
|
|
|
|
.album_id{:id => @album.id, :style => "display:hidden;"}
|
|
|
|
-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)
|
|
-if current_user.owns? @album
|
|
=render 'photos/new_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'
|