Sha256: 4d77df02da064a37e3620b5d26ff305378680c06ac375e5982b61452bbff2af2

Contents?: true

Size: 539 Bytes

Versions: 24

Compression:

Stored size: 539 Bytes

Contents

module Forge::VideoFeedsHelper
  def video_feed_embed_in_forge(video)
    if video.source == "youtube"
      "<iframe width='516' height='315' src='https://www.youtube-nocookie.com/embed/#{video.video_id}' frameborder='0' allowfullscreen></iframe>".html_safe 
    elsif video.source == "vimeo"
      "<iframe src='http://player.vimeo.com/video/#{video.video_id}?title=0&amp;byline=0&amp;portrait=0' width='516' height='300' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>".html_safe 
    end
  end
end


Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.1.9 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.1.8 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.1.7 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.1.6 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.1.5 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.1.4 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.1.3 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.1.2 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.1.1 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.1.0 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.0.18 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.0.17 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.0.16 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.0.15 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.0.14 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.0.13 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.0.12 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.0.11 lib/forge/app/helpers/forge/video_feeds_helper.rb
forge-cli-0.0.10 lib/forge/app/helpers/forge/video_feeds_helper.rb