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" aria-hidden=
"true"></my-global-icon>
6 <ng-container i18n
>Create user
</ng-container>
11 [value]=
"users" [lazy]=
"true" [paginator]=
"totalRecords > 0" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage" [rowsPerPageOptions]=
"rowsPerPageOptions"
12 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" dataKey=
"id" [resizableColumns]=
"true"
13 [(selection)]=
"selectedUsers"
14 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
15 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} users"
16 (onPage)=
"onPage($event)" [expandedRowKeys]=
"expandedRows"
18 <ng-template pTemplate=
"caption">
22 *
ngIf=
"isInSelectionMode()" i18n-label
label=
"Batch actions" theme=
"orange"
23 [actions]=
"bulkUserActions" [entry]=
"selectedUsers"
28 <div class=
"has-feedback has-clear">
30 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
31 (keyup)=
"onSearch($event)"
33 <a class=
"glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)=
"resetSearch()"></a>
34 <span class=
"sr-only" i18n
>Clear filters
</span>
39 <ng-template pTemplate=
"header">
41 <th style=
"width: 40px">
42 <p-tableHeaderCheckbox></p-tableHeaderCheckbox>
44 <th style=
"width: 40px"></th>
45 <th pResizableColumn i18n
pSortableColumn=
"username">Username
<p-sortIcon field=
"username"></p-sortIcon></th>
47 <th style=
"width: 140px;" i18n
pSortableColumn=
"videoQuotaUsed">Video quota
<p-sortIcon field=
"videoQuotaUsed"></p-sortIcon></th>
48 <th style=
"width: 120px;" i18n
>Role
</th>
49 <th style=
"width: 140px;" pResizableColumn i18n
>Auth plugin
</th>
50 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Created
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
51 <th style=
"width: 50px;"></th>
55 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-user
>
57 <tr [pSelectableRow]=
"user" [ngClass]=
"{ banned: user.blocked }">
59 <p-tableCheckbox [value]=
"user"></p-tableCheckbox>
62 <td class=
"expand-cell">
63 <span *
ngIf=
"user.blockedReason" class=
"expander" [pRowToggler]=
"user">
64 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
69 <a i18n-title
title=
"Open account in a new tab" target=
"_blank" rel=
"noopener noreferrer" [routerLink]=
"[ '/accounts/' + user.username ]">
70 <div class=
"chip two-lines">
73 [src]=
"user?.account?.avatar?.path"
74 (error)=
"switchToDefaultAvatar($event)"
78 {{ user.account.displayName }}
79 <span class=
"text-muted">{{ user.username }}
</span>
82 <span i18n *
ngIf=
"user.blocked" class=
"banned-info">(banned)
</span>
86 <td *
ngIf=
"!requiresEmailVerification || user.blocked; else emailWithVerificationStatus" [title]=
"user.email">{{ user.email }}
</td>
88 <ng-template #emailWithVerificationStatus
>
89 <td *
ngIf=
"user.emailVerified === false; else emailVerifiedNotFalse" i18n-title
title=
"User's email must be verified to login">
90 <em>? {{ user.email }}
</em>
92 <ng-template #emailVerifiedNotFalse
>
93 <td i18n-title
title=
"User's email is verified / User can login without email verification">
94 ✓ {{ user.email }}
99 <td>{{ user.videoQuotaUsed }} / {{ user.videoQuota }}
</td>
100 <td>{{ user.roleLabel }}
</td>
103 <ng-container *
ngIf=
"user.pluginAuth">{{ user.pluginAuth }}
</ng-container>
106 <td [title]=
"user.createdAt">{{ user.createdAt | date: 'short' }}
</td>
108 <td class=
"action-cell">
109 <my-user-moderation-dropdown
110 *
ngIf=
"!isInSelectionMode()"
111 [user]=
"user" container=
"body" (userChanged)=
"onUserChanged()" (userDeleted)=
"onUserChanged()"
113 </my-user-moderation-dropdown>
118 <ng-template pTemplate=
"rowexpansion" let-user
>
119 <tr class=
"user-blocked-reason">
121 <span i18n
class=
"ban-reason-label">Ban reason:
</span>
122 {{ user.blockedReason }}
128 <my-user-ban-modal #userBanModal (userBanned)=
"onUserChanged()"></my-user-ban-modal>