User image is sent to metadataplayer
authorverrierj
Thu, 02 Feb 2012 15:24:08 +0100
changeset 506 8dc3043a7470
parent 505 a345016af821
child 507 9b3ad1aa1868
User image is sent to metadataplayer
src/ldt/ldt/ldt_utils/templates/front/front_base.html
src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html
--- a/src/ldt/ldt/ldt_utils/templates/front/front_base.html	Thu Feb 02 15:16:24 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/front/front_base.html	Thu Feb 02 15:24:08 2012 +0100
@@ -36,7 +36,7 @@
         <li id="li_annotation">
             <div class="fl">
                 <!-- a href="#"><img src="{{LDT_MEDIA_PREFIX}}img/annot_icon.png" id="annot_icon" /></a -->
-                <a href="http://www.iri.centrepompidou.fr" target="_blank" title="{% trans 'link IRI' %}">IRI</a>
+                <a href="{% url root-view %}"  title="{% trans "back" %}">{% trans "back" %}</a>
             </div>
             <div class="fl">
                 <!-- a href="{% url root-view %}">{% trans 'Annotate' %}</a -->
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html	Thu Feb 02 15:16:24 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html	Thu Feb 02 15:24:08 2012 +0100
@@ -1,5 +1,6 @@
 {% spaceless %}
 {% load i18n %}
+{% load thumbnail %}
 <div>
 <div id="{{ player_id }}_embed" class="iri_player_embed">
 </div>
@@ -18,7 +19,9 @@
   IriSP.widgetsDefaults["AnnotationsListWidget"].platform_url = "{{WEB_URL}}{% url segment_api iri_id='{content}' begin='{begin}' end='{end}' %}";
   
   IriSP.platform_url = "{{WEB_URL}}{{BASE_URL}}";
-  IriSP.user = {name: '{{request.user.username}}' };
+  IriSP.user = {name: '{{request.user.username}}',
+		  		avatar: '{% thumbnail request.user.get_profile.image "48x48" format="PNG" crop="center" as im %}{{WEB_URL}}{{ im.url }}{% endthumbnail %}',
+				};
   
 	  
     var config = {