# HG changeset patch # User hamidouk # Date 1321545617 -3600 # Node ID 576cc32f0688a06036943a4659109f801fbedfa9 # Parent f84013fb19dcd1d7815d76a69d361cb3d2b82b16 added display over the tweeter's avatar. diff -r f84013fb19dc -r 576cc32f0688 src/css/LdtPlayer.css --- a/src/css/LdtPlayer.css Thu Nov 17 16:51:19 2011 +0100 +++ b/src/css/LdtPlayer.css Thu Nov 17 17:00:17 2011 +0100 @@ -240,10 +240,11 @@ font-family: "Trebuchet MS", "Helvetica", "Arial", "Verdana", "sans-serif"; background-color:#eeeeee; padding:5px; + overflow: auto; } .Ldt-tweetAvatar { - + float: left; } .Ldt-tweetContents { diff -r f84013fb19dc -r 576cc32f0688 src/js/widgets/tweetsWidget.js --- a/src/js/widgets/tweetsWidget.js Thu Nov 17 16:51:19 2011 +0100 +++ b/src/js/widgets/tweetsWidget.js Thu Nov 17 17:00:17 2011 +0100 @@ -11,13 +11,10 @@ IriSP.TweetsWidget.prototype.displayTweet = function(annotation) { var title = annotation.content.title; - var description = annotation.content.description; - var keywords = "" // FIXME; - var begin = +annotation.begin; - var end = +annotation.end; - var duration = +this._serializer.currentMedia().meta["dc:duration"]; - - this.selector.find(".Ldt-tweetContents").text(title); + var imageMarkup = Mustache.to_html("avatar", + {src : annotation.content.img.src}); + this.selector.find(".Ldt-tweetContents").text(title); + this.selector.find(".Ldt-tweetAvatar").html(imageMarkup); }; IriSP.TweetsWidget.prototype.draw = function() {