mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-11 14:24:19 -05:00
Added link to user profile pages
This commit is contained in:
parent
ecfdf23250
commit
c3f1548bb4
@ -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() {
|
$scope.leaveRoom = function() {
|
||||||
|
|
||||||
matrixService.leave($scope.room_id).then(
|
matrixService.leave($scope.room_id).then(
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<div id="usersTableWrapper">
|
<div id="usersTableWrapper">
|
||||||
<table id="usersTable">
|
<table id="usersTable">
|
||||||
<tr ng-repeat="member in members | orderMembersList">
|
<tr ng-repeat="member in members | orderMembersList">
|
||||||
<td class="userAvatar">
|
<td class="userAvatar" ng-click="goToUserPage(member.id)">
|
||||||
<img class="userAvatarImage"
|
<img class="userAvatarImage"
|
||||||
ng-src="{{member.avatar_url || 'img/default-profile.jpg'}}"
|
ng-src="{{member.avatar_url || 'img/default-profile.jpg'}}"
|
||||||
alt="{{ member.displayname || member.id.substr(0, member.id.indexOf(':')) }}"
|
alt="{{ member.displayname || member.id.substr(0, member.id.indexOf(':')) }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user