19 lines
483 B
Ruby
19 lines
483 B
Ruby
# Copyright (c) 2010, Diaspora Inc. This file is
|
|
# licensed under the Affero General Public License version 3. See
|
|
# the COPYRIGHT file.
|
|
|
|
|
|
module PhotosHelper
|
|
|
|
def linked_scaled_photo(photo, album)
|
|
link_to (image_tag photo.url(:scaled_full)), photo_path(album.next_photo(photo)), :rel => "prefetch"
|
|
end
|
|
|
|
def url_to_prev(photo, album)
|
|
photo_path(album.prev_photo(photo))
|
|
end
|
|
|
|
def url_to_next(photo, album)
|
|
photo_path(album.next_photo(photo))
|
|
end
|
|
end
|