Sha256: 5422dac26d005333778055d41e34f5f4d4155c584d6ca2c10aa4cd83c862dfc9

Contents?: true

Size: 1.54 KB

Versions: 70

Compression:

Stored size: 1.54 KB

Contents

<div data-role="page">
	<div data-role="header">
		<h1><%=_"Open YouTube link"%></h1>
		
		<a href="javascript: history.back(-1)" class="ui-btn-left" data-icon="back" data-back="true"><%=_("Back")%></a>
	</div>
	<div data-role="content">
		<ul data-role="listview">
			<%if System::get_property('platform') != "APPLE"%>
				<li>
					<a href="javascript: knj_rhodes_html_links({'url': 'vnd.youtube://<%=@params["youtube_id"]%>'})">
						<h3><%=_"Open in built-in app. (VND)"%></h3>
						<p><%=_"This will trigger the YouTube-app. in Android."%></p>
					</a>
				</li>
			<%end%>
			
			<%if System::get_property("platform") == "APPLE"%>
				<li>
					<a href="javascript: knj_rhodes_html_links({'url': iphone_str})">
						<h3><%=_"Open in built-in app. (iPhone)"%></h3>
						<p><%=_"This will trigger the YouTube-app. on iPhone."%></p>
					</a>
				</li>
			<%end%>
			
			<li>
				<a href="javascript: knj_rhodes_html_links({'url': 'http://www.youtube.com/watch?v=<%=@params["youtube_id"]%>'})">
					<h3><%=_"Open YouTube-URL"%></h3>
					<p><%=_"This will open the YouTube-video in a browser."%></p>
				</a>
			</li>
			<li>
				<a href="<%=url_for(:action => :youtube_embed, :query => {:youtube_id => @params["youtube_id"]})%>">
					<h3><%=_"Open YouTube embedded"%></h3>
					<p><%=_"Watch the video in this app. using embedding from YouTube."%></p>
				</a>
			</li>
		</ul>
		
		<script>
			var iphone_str = "[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@\"http://www.youtube.com/v/oHg5SJYRHA0&f=gdata_videos\"]]; "
		</script>
	</div>
</div>

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
knjrbfw-0.0.78 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.77 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.75 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.74 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.72 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.71 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.70 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.69 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.68 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.67 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.66 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.65 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.64 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.63 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.62 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.59 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.58 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.57 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.55 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.54 lib/knj/rhodes/youtube_open.erb