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.98 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.97 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.96 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.95 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.94 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.93 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.92 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.91 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.90 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.89 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.88 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.87 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.86 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.85 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.84 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.83 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.82 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.81 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.80 lib/knj/rhodes/youtube_open.erb
knjrbfw-0.0.79 lib/knj/rhodes/youtube_open.erb