Skip to content
Extraits de code Groupes Projets
photos_helper.rb 483 octets
Newer Older
  • Learn to ignore specific revisions
  • Raphael's avatar
    Raphael a validé
    #   Copyright (c) 2010, Disapora 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"
    
      def url_to_prev(photo, album)
        photo_path(album.prev_photo(photo))
    
      def url_to_next(photo, album)
        photo_path(album.next_photo(photo))
    
      end
    end