mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-04 19:21:07 +01:00
feat(invitations): add prop 'info-uname' into directives 'user-info'
This commit is contained in:
@@ -75,7 +75,7 @@
|
||||
popover-trigger="'mouseenter'"
|
||||
popover-placement="top-right"
|
||||
ng-mouseenter="vm.selectedUser=r.to_user">
|
||||
<abbr title="user detail">{{r.to_user.username}}<span message-to="r.to_user"
|
||||
<abbr title="user detail"><span user-info="r.to_user" info-uname></span><span message-to="r.to_user"
|
||||
to-class="message-to-icon"></span></abbr>
|
||||
</td>
|
||||
<td class="text-center" ng-if="!r.to_user">
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
popover-trigger="'mouseenter'"
|
||||
popover-placement="top-right"
|
||||
ng-mouseenter="vm.selectedUser=r.to_user">
|
||||
<abbr title="user detail">{{r.to_user.username}}<span message-to="r.to_user"
|
||||
<abbr title="user detail"><span user-info="r.to_user" info-uname></span><span message-to="r.to_user"
|
||||
to-class="message-to-icon"></span></abbr>
|
||||
</td>
|
||||
<td class="text-center" ng-if="!r.to_user">
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
if (attrs.hasOwnProperty('infoName')) {
|
||||
e = angular.element('<a href="#" ui-sref="userinfo({userId: \'' + user._id + '\'})" ng-click="$event.stopPropagation();">' + user.displayName + '</a>');
|
||||
} else if (attrs.hasOwnProperty('infoUname')) {
|
||||
e = angular.element('<a href="#" ui-sref="userinfo({userId: \'' + user._id + '\'})" ng-click="$event.stopPropagation();">' + user.username + '</a>');
|
||||
} else if (attrs.hasOwnProperty('infoAvatar')) {
|
||||
e = angular.element('<a href="#" ui-sref="userinfo({userId: \'' + user._id + '\'})" ng-click="$event.stopPropagation();"><img src="/' + user.profileImageURL + '"></a>');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user