feat(users): add user profile picture in admin users manager list

This commit is contained in:
OldHawk
2017-06-08 16:06:46 +08:00
parent b93e160260
commit 6893587ab5
2 changed files with 10 additions and 0 deletions

View File

@@ -876,6 +876,14 @@ body {
width: 44px;
}
.ulist-avatar {
float: left;
margin-right: 10px;
border-radius: 3px;
height: 44px;
width: 44px;
}
.status-divider {
height: 1px;
overflow: hidden;

View File

@@ -12,6 +12,8 @@
<div class="list-group">
<a ng-repeat="user in vm.pagedItems" ui-sref="admin.user({userId: user._id})" class="list-group-item"
ng-class="{'span-banned': user.status == 'banned'}">
<img class="ulist-avatar" ng-src="/{{user.profileImageURL}}">
<h4 class="list-group-item-heading" ng-bind="user.username"></h4>
<p class="list-group-item-text pull-right small" ng-bind="user.roles"></p>