Sha256: 830ba8d6ef31da784243b9d660a0f08d26f7ab9c5ff04abc49c9a47dc4031034

Contents?: true

Size: 837 Bytes

Versions: 32

Compression:

Stored size: 837 Bytes

Contents

module EnjuManifestationViewer
  module ManifestationViewerHelper
    def google_book_search_preview(isbn)
      render :partial => 'manifestations/google_book_search', :locals => {:isbn => isbn}
    end

    def embed_content(manifestation)
      case
      when manifestation.youtube_id
        render :partial => 'manifestations/youtube', :locals => {:manifestation => manifestation}
      when manifestation.nicovideo_id
        render :partial => 'manifestations/nicovideo', :locals => {:manifestation => manifestation}
      when manifestation.flickr.present?
        render :partial => 'manifestations/flickr', :locals => {:manifestation => manifestation}
      when manifestation.respond_to?(:ipaper_id)
        render :partial => 'manifestations/scribd', :locals => {:manifestation => manifestation}
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
enju_manifestation_viewer-0.2.4 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.2.3 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.2.2 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.2.1 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_manifestation_viewer-0.2.0/lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.2.0 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.2.0.beta.4 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.2.0.beta.3 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.2.0.beta.2 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.2.0.beta.1 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.1.1 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.1.0 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.1.0.pre19 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.1.0.pre18 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.1.0.pre17 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.1.0.pre16 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.1.0.pre15 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.1.0.pre14 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.1.0.pre13 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb
enju_manifestation_viewer-0.1.0.pre12 lib/enju_manifestation_viewer/manifestation_viewer_helper.rb