# HG changeset patch # User hamidouk # Date 1328785595 -3600 # Node ID 6d8a83ef4949d9227a8a526280d6e39132a35de8 # Parent 8b69c3dbbc182d7c3d3ad31b5448359dc4b4c636# Parent 6ff51024d2db367d7a5a7dcf0e5c9e671ea47a94 Merge with local diff -r 6ff51024d2db -r 6d8a83ef4949 src/css/imgs/user_default_icon.png Binary file src/css/imgs/user_default_icon.png has changed diff -r 6ff51024d2db -r 6d8a83ef4949 src/css/imgs/video_sequence.png Binary file src/css/imgs/video_sequence.png has changed diff -r 6ff51024d2db -r 6d8a83ef4949 src/js/init.js --- a/src/js/init.js Thu Feb 09 11:09:28 2012 +0100 +++ b/src/js/init.js Thu Feb 09 12:06:35 2012 +0100 @@ -157,7 +157,9 @@ /** configure modules. @see configureWidgets */ IriSP.configureModules = function (popcornInstance, modulesList) { - + if (IriSP.null_or_undefined(modulesList)) + return; + var serialFactory = new IriSP.SerializerFactory(IriSP.__dataloader); var ret_modules = []; var index; @@ -246,6 +248,11 @@ IriSP.paths = IriSP.underscore.defaults(IriSP.paths, IriSP.defaults.paths); IriSP.default_templates_vars = IriSP.underscore.defaults(IriSP.default_templates_vars, IriSP.defaults.default_templates_vars()); + + if (IriSP.null_or_undefined(IriSP.user)) + IriSP.user = {}; + + IriSP.user = IriSP.underscore.defaults(IriSP.user, IriSP.defaults.user()); }; /** single point of entry for the metadataplayer */ diff -r 6ff51024d2db -r 6d8a83ef4949 src/js/site.js.templ --- a/src/js/site.js.templ Thu Feb 09 11:09:28 2012 +0100 +++ b/src/js/site.js.templ Thu Feb 09 12:06:35 2012 +0100 @@ -115,12 +115,13 @@ /* Override this if you want to change the info the player receives about the user. It's typically overrided in server-side templates with user-specific data. +*/ +IriSP.defaults.user = function() { return { + "name" : "Anonymous user", + "avatar" : IriSP.paths.imgs + "/user_default_icon.png" + } +}; -IriSP.user = { - "name" : "loic", - "avatar" : "http://a1.twimg.com/profile_images/39270812/loicempuria_normal.jpg" -}; -*/ IriSP.defaults.paths = { // "imgs": "/tweetlive/res/metadataplayer/src/css/imgs" diff -r 6ff51024d2db -r 6d8a83ef4949 src/templates/annotationsListWidget.html --- a/src/templates/annotationsListWidget.html Thu Feb 09 11:09:28 2012 +0100 +++ b/src/templates/annotationsListWidget.html Thu Feb 09 12:06:35 2012 +0100 @@ -16,7 +16,7 @@ {{/url}}
- +
{{begin}} - {{end}}
{{title}}