1 <div class=
"admin-sub-header">
2 <div i18n
class=
"form-sub-title">Users list
</div>
4 <a class=
"add-button" routerLink=
"/admin/users/create">
5 <my-global-icon iconName=
"add"></my-global-icon>
6 <ng-container i18n
>Create user
</ng-container>
11 [value]=
"users" [lazy]=
"true" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage"
12 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" dataKey=
"id"
13 [(selection)]=
"selectedUsers"
14 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
15 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} users"
17 <ng-template pTemplate=
"caption">
21 *
ngIf=
"isInSelectionMode()" i18n-label
label=
"Batch actions" theme=
"orange"
22 [actions]=
"bulkUserActions" [entry]=
"selectedUsers"
29 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
30 (keyup)=
"onSearch($event)"
36 <ng-template pTemplate=
"header">
38 <th style=
"width: 40px">
39 <p-tableHeaderCheckbox></p-tableHeaderCheckbox>
41 <th style=
"width: 40px"></th>
42 <th i18n
pSortableColumn=
"username">Username
<p-sortIcon field=
"username"></p-sortIcon></th>
44 <th i18n
pSortableColumn=
"videoQuotaUsed">Video quota
<p-sortIcon field=
"videoQuotaUsed"></p-sortIcon></th>
46 <th i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
47 <th style=
"width: 50px;"></th>
51 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-user
>
53 <tr [pSelectableRow]=
"user" [ngClass]=
"{ banned: user.blocked }">
55 <p-tableCheckbox [value]=
"user"></p-tableCheckbox>
58 <td class=
"expand-cell">
59 <span *
ngIf=
"user.blockedReason" class=
"expander" [pRowToggler]=
"user">
60 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
65 <a i18n-title
title=
"Open account in a new tab" target=
"_blank" rel=
"noopener noreferrer" [routerLink]=
"[ '/accounts/' + user.username ]">
66 <div class=
"chip two-lines">
69 [src]=
"user?.account?.avatar?.path"
70 (error)=
"switchToDefaultAvatar($event)"
74 {{ user.account.displayName }}
75 <span class=
"text-muted">{{ user.username }}
</span>
78 <span i18n *
ngIf=
"user.blocked" class=
"banned-info">(banned)
</span>
82 <td *
ngIf=
"!requiresEmailVerification || user.blocked; else emailWithVerificationStatus" [title]=
"user.email">{{ user.email }}
</td>
84 <ng-template #emailWithVerificationStatus
>
85 <td *
ngIf=
"user.emailVerified === false; else emailVerifiedNotFalse" i18n-title
title=
"User's email must be verified to login">
86 <em>? {{ user.email }}
</em>
88 <ng-template #emailVerifiedNotFalse
>
89 <td i18n-title
title=
"User's email is verified / User can login without email verification">
90 ✓ {{ user.email }}
95 <td>{{ user.videoQuotaUsed }} / {{ user.videoQuota }}
</td>
96 <td>{{ user.roleLabel }}
</td>
97 <td [title]=
"user.createdAt">{{ user.createdAt }}
</td>
98 <td class=
"action-cell">
99 <my-user-moderation-dropdown *
ngIf=
"!isInSelectionMode()" [user]=
"user" (userChanged)=
"onUserChanged()" (userDeleted)=
"onUserChanged()">
100 </my-user-moderation-dropdown>
105 <ng-template pTemplate=
"rowexpansion" let-user
>
106 <tr class=
"user-blocked-reason">
108 <span i18n
class=
"ban-reason-label">Ban reason:
</span>
109 {{ user.blockedReason }}
115 <my-user-ban-modal #userBanModal (userBanned)=
"onUserChanged()"></my-user-ban-modal>