--- a/client/js/ldtjson-bin.js Sat Apr 18 17:52:37 2015 +0200
+++ b/client/js/ldtjson-bin.js Sat Apr 18 17:53:02 2015 +0200
@@ -17,15 +17,9 @@
var ProjectBin = Ldt.ProjectBin = Rkns.Utils.inherit(Rkns._BaseBin);
-ProjectBin.prototype.tagTemplate = _.template(
- '<li class="Rk-Bin-Item" draggable="true" data-image="<%- Rkns.Utils.getFullURL(static_url+\'img/ldt-tag.png\') %>" data-uri="<%=ldt_platform%>ldtplatform/ldt/front/search/?search=<%=encodedtitle%>&field=all" data-title="<%-title%>" data-description="Tag \'<%-title%>\'">' +
- '<img class="Rk-Ldt-Tag-Icon" src="<%-static_url%>img/ldt-tag.png" /><h4><%=htitle%></h4><div class="Rk-Clear"></div></li>'
-);
+ProjectBin.prototype.tagTemplate = renkanJST['templates/ldtjson-bin/tagtemplate.html'];
-ProjectBin.prototype.annotationTemplate = _.template(
- '<li class="Rk-Bin-Item" draggable="true" data-image="<%- Rkns.Utils.getFullURL(image) %>" data-uri="<%=ldt_platform%>ldtplatform/ldt/front/player/<%=mediaid%>/#id=<%=annotationid%>" data-title="<%-title%>" data-description="<%-description%>">' +
- '<img class="Rk-Ldt-Annotation-Icon" src="<%=image%>"/><h4><%=htitle%></h4><p><%=hdescription%></p><p>Start: <%=start%>, End: <%=end%>, Duration: <%=duration%></p><div class="Rk-Clear"></div></li>'
-);
+ProjectBin.prototype.annotationTemplate = renkanJST['templates/ldtjson-bin/annotationtemplate.html'];
ProjectBin.prototype._init = function(_renkan, _opts) {
this.renkan = _renkan;
@@ -160,10 +154,7 @@
var ResultsBin = Ldt.ResultsBin = Rkns.Utils.inherit(Rkns._BaseBin);
-ResultsBin.prototype.segmentTemplate = _.template(
- '<li class="Rk-Bin-Item" draggable="true" data-image="<%- Rkns.Utils.getFullURL(image) %>" data-uri="<%=ldt_platform%>ldtplatform/ldt/front/player/<%=mediaid%>/#id=<%=annotationid%>" data-title="<%-title%>" data-description="<%-description%>">' +
- '<img class="Rk-Ldt-Annotation-Icon" src="<%=image%>"/><h4><%=htitle%></h4><p><%=hdescription%></p><p>Start: <%=start%>, End: <%=end%>, Duration: <%=duration%></p><div class="Rk-Clear"></div></li>'
-);
+ResultsBin.prototype.segmentTemplate = renkanJST['templates/ldtjson-bin/segmenttemplate.html'];
ResultsBin.prototype._init = function(_renkan, _opts) {
this.renkan = _renkan;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/templates/ldtjson-bin/annotationtemplate.html Sat Apr 18 17:53:02 2015 +0200
@@ -0,0 +1,11 @@
+<li class="Rk-Bin-Item" draggable="true"
+ data-image="<%- Rkns.Utils.getFullURL(image) %>"
+ data-uri="<%=ldt_platform%>ldtplatform/ldt/front/player/<%=mediaid%>/#id=<%=annotationid%>"
+ data-title="<%-title%>" data-description="<%-description%>">
+
+ <img class="Rk-Ldt-Annotation-Icon" src="<%=image%>" />
+ <h4><%=htitle%></h4>
+ <p><%=hdescription%></p>
+ <p>Start: <%=start%>, End: <%=end%>, Duration: <%=duration%></p>
+ <div class="Rk-Clear"></div>
+</li>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/templates/ldtjson-bin/segmenttemplate.html Sat Apr 18 17:53:02 2015 +0200
@@ -0,0 +1,11 @@
+<li class="Rk-Bin-Item" draggable="true"
+ data-image="<%- Rkns.Utils.getFullURL(image) %>"
+ data-uri="<%=ldt_platform%>ldtplatform/ldt/front/player/<%=mediaid%>/#id=<%=annotationid%>"
+ data-title="<%-title%>" data-description="<%-description%>">
+
+ <img class="Rk-Ldt-Annotation-Icon" src="<%=image%>" />
+ <h4><%=htitle%></h4>
+ <p><%=hdescription%></p>
+ <p>Start: <%=start%>, End: <%=end%>, Duration: <%=duration%></p>
+ <div class="Rk-Clear"></div>
+</li>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/templates/ldtjson-bin/tagtemplate.html Sat Apr 18 17:53:02 2015 +0200
@@ -0,0 +1,9 @@
+<li class="Rk-Bin-Item" draggable="true"
+ data-image="<%- Rkns.Utils.getFullURL(static_url+'img/ldt-tag.png') %>"
+ data-uri="<%=ldt_platform%>ldtplatform/ldt/front/search/?search=<%=encodedtitle%>&field=all"
+ data-title="<%-title%>" data-description="Tag '<%-title%>'">
+
+ <img class="Rk-Ldt-Tag-Icon" src="<%-static_url%>img/ldt-tag.png" />
+ <h4><%=htitle%></h4>
+ <div class="Rk-Clear"></div>
+</li>
\ No newline at end of file