Sha256: d7f7b60126c17c23d48357b7be40e56982c6015df4df29844ff7059fbb6161c7

Contents?: true

Size: 585 Bytes

Versions: 41

Compression:

Stored size: 585 Bytes

Contents

#
# ustream.rb - insert some services of Ustream.tv
#
# Copyright (C) 2010, TADA Tadashi <t@tdtds.jp>.
# You can redistribute it and/or modify it under GPL2.
#

def ustream( id, type = :recorded )
	if type == :live then
		return ''
	end

	# insert recorded video
	if feed? then
		return %Q|<a href="http://www.ustream.tv/recorded/#{id}">Link to Ustream ##{id}</a></p><p>|
	end

	%Q|<iframe class="ustream" width="480" height="302" src="http://www.ustream.tv/embed/recorded/#{id}?v=3&amp;wmode=direct" scrolling="no" frameborder="0" style="border: 0px none transparent;"></iframe>|
end

Version data entries

41 entries across 35 versions & 2 rubygems

Version Path
tdiary-contrib-5.3.0 plugin/ustream.rb
tdiary-contrib-5.2.4 plugin/ustream.rb
tdiary-contrib-5.2.3 plugin/ustream.rb
tdiary-contrib-5.2.2 plugin/ustream.rb
tdiary-contrib-5.2.1 plugin/ustream.rb
tdiary-contrib-5.2.0 plugin/ustream.rb
tdiary-contrib-5.1.7 plugin/ustream.rb
tdiary-contrib-5.1.6 plugin/ustream.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/ustream.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/bundler/gems/tdiary-contrib-d1e41204db13/plugin/ustream.rb
tdiary-contrib-5.1.5 plugin/ustream.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-contrib-5.1.4/plugin/ustream.rb
tdiary-contrib-5.1.4 plugin/ustream.rb
tdiary-contrib-5.1.3 plugin/ustream.rb
tdiary-contrib-5.1.2 plugin/ustream.rb
tdiary-contrib-5.1.1 plugin/ustream.rb
tdiary-contrib-5.1.0 plugin/ustream.rb
tdiary-contrib-5.0.13 plugin/ustream.rb
tdiary-contrib-5.0.12 plugin/ustream.rb
tdiary-contrib-5.0.11 plugin/ustream.rb