--- 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("<img src='{{src}}' alt='avatar'></img>",
+ {src : annotation.content.img.src});
+ this.selector.find(".Ldt-tweetContents").text(title);
+ this.selector.find(".Ldt-tweetAvatar").html(imageMarkup);
};
IriSP.TweetsWidget.prototype.draw = function() {