summary refs log tree commit diff
path: root/webclient/home/home.html
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-08-29 18:22:05 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-29 18:23:18 +0200
commit67f42b2f26a6ea76ec480167c58e1fa115809e23 (patch)
treedb3a706f5fec93ad239f5aeb777cf8411e522327 /webclient/home/home.html
parentupdate presence times in realtime through the magic of two-way binding (diff)
downloadsynapse-67f42b2f26a6ea76ec480167c58e1fa115809e23.tar.xz
Get user display name and avatar from the server rather than storing them in the local storage
Diffstat (limited to 'webclient/home/home.html')
-rw-r--r--webclient/home/home.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/webclient/home/home.html b/webclient/home/home.html
index d38b843d83..1b1c21d9d2 100644
--- a/webclient/home/home.html
+++ b/webclient/home/home.html
@@ -9,13 +9,13 @@
                 <tr>
                     <td>
                         <div class="profile-avatar">
-                            <img ng-src="{{ config.avatarUrl || 'img/default-profile.jpg' }}"/>
+                            <img ng-src="{{ (null !== profile.avatarUrl) ? profile.avatarUrl : 'img/default-profile.jpg' }}"/>
                         </div>
                     </td>
                     <td>
                         <div id="user-ids">
-                            <div id="user-displayname">{{ config.displayName }}</div>
-                            <div>{{ config.user_id }}</div>                        
+                            <div id="user-displayname">{{ profile.displayName }}</div>
+                            <div>{{ config.user_id }}</div>
                         </div>
                     </td>
                 </tr>