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.33 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.32 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.31 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.30 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.29 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.28 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.27 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.26 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.25 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.24 lib/knj/rhodes/youtube_open.erb