client/data/custom_templates.js
changeset 484 cfe440ade6d6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/data/custom_templates.js	Tue Jun 16 11:38:22 2015 +0200
@@ -0,0 +1,40 @@
+var custom_templates = {}
+
+custom_templates['nodeeditor_audio'] = function(obj) {
+    obj || (obj = {});
+    var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
+    function print() { __p += __j.call(arguments, '') }
+    with (obj) {
+    __p += '<h2>\n    <span class="Rk-CloseX">&times;</span>\n    ';
+     if (options.show_node_tooltip_color) { ;
+    __p += '\n        <span class="Rk-UserColor" style="background: ' +
+    __e(node.color) +
+    ';"></span>\n    ';
+     } ;
+    __p += '\n    <span class="Rk-Display-Title">\n        ';
+     if (node.uri) { ;
+    __p += '\n            <a href="' +
+    __e(node.uri) +
+    '" target="_blank">\n        ';
+     } ;
+    __p += '\n        ' +
+    __e(node.title) +
+    '\n        ';
+     if (node.uri) { ;
+    __p += '</a>';
+     } ;
+    __p += '\n    </span>\n</h2>\n';
+     if (node.uri && options.show_node_tooltip_uri) { ;
+    __p += '\n     <audio width="320" height="240" controls>\n        <source src="' +
+    __e(node.uri) +
+    '" type="video/mp4">\n     </video> \n';
+     } ;
+    __p += '\n    <a href="#?idnode=' +
+    __e(node._id) +
+    '">' +
+    __e(renkan.translate("Link to the node")) +
+    '</a>\n';
+
+    }
+    return __p
+}; 
\ No newline at end of file