summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-08-19 08:58:53 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-08-19 08:58:53 +0200
commitc3f1548bb4b485aef00ac67079cea7e65216d4d4 (patch)
treef4c0c3806a25e5624f6cb3e1e45f72d8a12c6225
parentCreated boilerplate for user profile page (diff)
downloadsynapse-c3f1548bb4b485aef00ac67079cea7e65216d4d4.tar.xz
Added link to user profile pages
Diffstat (limited to '')
-rw-r--r--webclient/room/room-controller.js5
-rw-r--r--webclient/room/room.html2
2 files changed, 6 insertions, 1 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index d130a28fd7..bb9167d9df 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -433,6 +433,11 @@ angular.module('RoomController', ['ngSanitize'])
             });
     };
 
+    // Open the user profile page
+    $scope.goToUserPage = function(user_id) {
+        $location.path("user/" + user_id);
+    };
+
     $scope.leaveRoom = function() {
         
         matrixService.leave($scope.room_id).then(
diff --git a/webclient/room/room.html b/webclient/room/room.html
index 1c6a44f6fc..36bd95c1bb 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -10,7 +10,7 @@
     <div id="usersTableWrapper">
         <table id="usersTable">
             <tr ng-repeat="member in members | orderMembersList">
-                <td class="userAvatar">
+                <td class="userAvatar" ng-click="goToUserPage(member.id)">
                     <img class="userAvatarImage" 
                          ng-src="{{member.avatar_url || 'img/default-profile.jpg'}}" 
                          alt="{{ member.displayname || member.id.substr(0, member.id.indexOf(':')) }}"