diff -r d249d36ecc37 -r db991a757015 client/js/ldtjson-bin.js --- a/client/js/ldtjson-bin.js Wed Sep 05 14:49:33 2012 +0200 +++ b/client/js/ldtjson-bin.js Thu Sep 06 17:21:11 2012 +0200 @@ -3,13 +3,13 @@ Rkns.Ldt.ProjectBin = Rkns.Utils.inherit(Rkns._BaseBin); Rkns.Ldt.ProjectBin.prototype.tagTemplate = Rkns._.template( - '
  • ' - + '

    <%-title%>

  • ' + '
  • ' + + '

    <%-title%>

  • ' ); Rkns.Ldt.ProjectBin.prototype.annotationTemplate = Rkns._.template( - '
  • ' - + '

    <%-title%>

    <%-description%>

    Start: <%=start%>, End: <%=end%>, Duration: <%=duration%>

  • ' + '
  • ' + + '

    <%-title%>

    <%-description%>

    Start: <%=start%>, End: <%=end%>, Duration: <%=duration%>

  • ' ); Rkns.Ldt.ProjectBin.prototype._init = function(_renkan, _opts) { @@ -54,7 +54,12 @@ _html += Rkns._(_data.annotations).map(function(_annotation) { var _description = _annotation.content.description, _title = _annotation.content.title.replace(_description,""), - _duration = _annotation.end - _annotation.begin; + _duration = _annotation.end - _annotation.begin, + _img = ( + (_annotation.content && _annotation.content.img && _annotation.content.img.src) + ? _annotation.content.img.src + : ( _duration ? "img/ldt-segment.png" : "img/ldt-point.png" ) + ); return _this.annotationTemplate({ ldt_platform: _this.ldt_platform, title: _title, @@ -64,7 +69,7 @@ duration: convertTC(_duration), mediaid: _annotation.media, annotationid: _annotation.id, - type: _duration ? "Segment" : "Point" + image: _img }); }).join("");