2 [value]=
"users" [lazy]=
"true" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
3 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" dataKey=
"id" [resizableColumns]=
"true"
4 [(selection)]=
"selectedUsers"
5 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
6 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} users"
7 (onPage)=
"onPage($event)" [expandedRowKeys]=
"expandedRows"
9 <ng-template pTemplate=
"caption">
13 *
ngIf=
"isInSelectionMode()" i18n-label
label=
"Batch actions" theme=
"orange"
14 [actions]=
"bulkUserActions" [entry]=
"selectedUsers"
19 <div class=
"ml-auto has-feedback has-clear">
21 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
22 (keyup)=
"onSearch($event)"
24 <a class=
"glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)=
"resetSearch()"></a>
25 <span class=
"sr-only" i18n
>Clear filters
</span>
27 <a class=
"ml-2 add-button" routerLink=
"/admin/users/create">
28 <my-global-icon iconName=
"add" aria-hidden=
"true"></my-global-icon>
29 <ng-container i18n
>Create user
</ng-container>
34 <ng-template pTemplate=
"header">
36 <th style=
"width: 40px">
37 <p-tableHeaderCheckbox></p-tableHeaderCheckbox>
39 <th style=
"width: 40px"></th>
40 <th pResizableColumn i18n
pSortableColumn=
"username">Username
<p-sortIcon field=
"username"></p-sortIcon></th>
42 <th style=
"width: 140px;" i18n
pSortableColumn=
"videoQuotaUsed">Video quota
<p-sortIcon field=
"videoQuotaUsed"></p-sortIcon></th>
43 <th style=
"width: 120px;" i18n
>Role
</th>
44 <th style=
"width: 140px;" pResizableColumn i18n
>Auth plugin
</th>
45 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
46 <th style=
"width: 60px;"></th>
50 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-user
>
52 <tr [pSelectableRow]=
"user" [ngClass]=
"{ banned: user.blocked }">
54 <p-tableCheckbox [value]=
"user"></p-tableCheckbox>
57 <td class=
"expand-cell">
58 <span *
ngIf=
"user.blockedReason" class=
"expander" [pRowToggler]=
"user">
59 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
64 <a i18n-title
title=
"Open account in a new tab" target=
"_blank" rel=
"noopener noreferrer" [routerLink]=
"[ '/accounts/' + user.username ]">
65 <div class=
"chip two-lines">
68 [src]=
"user?.account?.avatar?.path"
69 (error)=
"switchToDefaultAvatar($event)"
74 <span *
ngIf=
"user.blocked" i18n-title
title=
"The user was banned" class=
"glyphicon glyphicon-ban-circle"></span>
75 {{ user.account.displayName }}
77 <span class=
"text-muted">{{ user.username }}
</span>
83 <td *
ngIf=
"!requiresEmailVerification || user.blocked; else emailWithVerificationStatus" [title]=
"user.email">{{ user.email }}
</td>
85 <ng-template #emailWithVerificationStatus
>
86 <td *
ngIf=
"user.emailVerified === false; else emailVerifiedNotFalse" i18n-title
title=
"User's email must be verified to login">
87 <em>? {{ user.email }}
</em>
89 <ng-template #emailVerifiedNotFalse
>
90 <td i18n-title
title=
"User's email is verified / User can login without email verification">
91 ✓ {{ user.email }}
96 <td>{{ user.videoQuotaUsed }} / {{ user.videoQuota }}
</td>
97 <td>{{ user.roleLabel }}
</td>
100 <ng-container *
ngIf=
"user.pluginAuth">{{ user.pluginAuth }}
</ng-container>
103 <td [title]=
"user.createdAt">{{ user.createdAt | date: 'short' }}
</td>
105 <td class=
"action-cell">
106 <my-user-moderation-dropdown
107 *
ngIf=
"!isInSelectionMode()"
108 [user]=
"user" container=
"body" (userChanged)=
"onUserChanged()" (userDeleted)=
"onUserChanged()"
110 </my-user-moderation-dropdown>
115 <ng-template pTemplate=
"rowexpansion" let-user
>
116 <tr class=
"user-blocked-reason">
118 <span i18n
class=
"ban-reason-label">Ban reason:
</span>
119 {{ user.blockedReason }}
125 <my-user-ban-modal #userBanModal (userBanned)=
"onUserChanged()"></my-user-ban-modal>