--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/test/templates/youtube_template.html Thu Jan 05 16:26:07 2017 +0100
@@ -0,0 +1,25 @@
+<h2>
+ <span class="Rk-CloseX">×</span>
+ <% if (options.show_node_tooltip_color) { %>
+ <span class="Rk-UserColor" style="background: <%-node.color%>;"></span>
+ <% } %>
+ <span class="Rk-Display-Title">
+ <% if (node.uri) { %>
+ <a href="<%-node.uri%>" target="_blank">
+ <% } %>
+ <%=node.title%>
+ <% if (node.uri) { %></a><% } %>
+ </span>
+</h2>
+<% if (node.uri && options.show_node_tooltip_uri) {
+ var youtube_id = get_youtube_id(node.uri);
+ if(youtube_id) {
+ %>
+ <iframe width="255" height="143" src="https://www.youtube.com/embed/<%=youtube_id%>" frameborder="0"></iframe>
+<% }
+ else { %>
+ <p>The node url is not a youtube video</p>
+<% }
+ }
+%>
+<a href="#?idnode=<%-node._id%>"><%-renkan.translate("Link to the node")%></a>