]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/users/user-list/user-list.component.html
align feed icons to the right for video listings
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / users / user-list / user-list.component.html
CommitLineData
ab998f7b 1<p-table
25a42e29 2 [value]="users" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
df4c603d 3 [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id" [resizableColumns]="true"
791645e6 4 [(selection)]="selectedUsers"
2bc9bd08 5 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
45c14ae1 6 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} users"
25a42e29 7 (onPage)="onPage($event)" [expandedRowKeys]="expandedRows"
04e0fc48 8>
791645e6
C
9 <ng-template pTemplate="caption">
10 <div class="caption">
11 <div>
12 <my-action-dropdown
13 *ngIf="isInSelectionMode()" i18n-label label="Batch actions" theme="orange"
14 [actions]="bulkUserActions" [entry]="selectedUsers"
15 >
16 </my-action-dropdown>
17 </div>
18
c7b83630 19 <div class="ml-auto has-feedback has-clear">
791645e6
C
20 <input
21 type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..."
be27ef3b 22 (keyup)="onSearch($event)"
791645e6 23 >
25a42e29
RK
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>
791645e6 26 </div>
c7b83630
RK
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>
30 </a>
791645e6
C
31 </div>
32 </ng-template>
33
ab998f7b
C
34 <ng-template pTemplate="header">
35 <tr>
791645e6 36 <th style="width: 40px">
2cae5f13 37 <p-tableHeaderCheckbox></p-tableHeaderCheckbox>
791645e6 38 </th>
2cae5f13 39 <th style="width: 40px"></th>
df4c603d 40 <th pResizableColumn i18n pSortableColumn="username">Username <p-sortIcon field="username"></p-sortIcon></th>
b1d40cff 41 <th i18n>Email</th>
df4c603d
RK
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>
9b01cfc7 46 <th style="width: 60px;"></th>
ab998f7b
C
47 </tr>
48 </ng-template>
49
141b177d
C
50 <ng-template pTemplate="body" let-expanded="expanded" let-user>
51
791645e6 52 <tr [pSelectableRow]="user" [ngClass]="{ banned: user.blocked }">
d6af8146 53 <td>
791645e6
C
54 <p-tableCheckbox [value]="user"></p-tableCheckbox>
55 </td>
56
d6af8146 57 <td class="expand-cell">
141b177d
C
58 <span *ngIf="user.blockedReason" class="expander" [pRowToggler]="user">
59 <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
60 </span>
61 </td>
791645e6 62
141b177d 63 <td>
d6af8146
RK
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">
66 <img
67 class="avatar"
68 [src]="user?.account?.avatar?.path"
69 (error)="switchToDefaultAvatar($event)"
70 alt="Avatar"
71 >
72 <div>
9b01cfc7
RK
73 <span>
74 <span *ngIf="user.blocked" i18n-title title="The user was banned" class="glyphicon glyphicon-ban-circle"></span>
75 {{ user.account.displayName }}
76 </span>
d6af8146
RK
77 <span class="text-muted">{{ user.username }}</span>
78 </div>
79 </div>
af5767ff 80 </a>
141b177d 81 </td>
5abb9fbb 82
9b82d49d 83 <td *ngIf="!requiresEmailVerification || user.blocked; else emailWithVerificationStatus" [title]="user.email">{{ user.email }}</td>
5abb9fbb 84
fc2ec87a
JM
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>
88 </td>
89 <ng-template #emailVerifiedNotFalse>
90 <td i18n-title title="User's email is verified / User can login without email verification">
91 &#x2713; {{ user.email }}
92 </td>
93 </ng-template>
94 </ng-template>
5abb9fbb 95
a76138ff 96 <td>{{ user.videoQuotaUsed }} / {{ user.videoQuota }}</td>
ab998f7b 97 <td>{{ user.roleLabel }}</td>
8bb71f2e
C
98
99 <td>
100 <ng-container *ngIf="user.pluginAuth">{{ user.pluginAuth }}</ng-container>
101 </td>
102
df4c603d 103 <td [title]="user.createdAt">{{ user.createdAt | date: 'short' }}</td>
8bb71f2e 104
ab998f7b 105 <td class="action-cell">
5ff52366
C
106 <my-user-moderation-dropdown
107 *ngIf="!isInSelectionMode()"
108 [user]="user" container="body" (userChanged)="onUserChanged()" (userDeleted)="onUserChanged()"
109 >
79bd2632 110 </my-user-moderation-dropdown>
141b177d
C
111 </td>
112 </tr>
113 </ng-template>
114
115 <ng-template pTemplate="rowexpansion" let-user>
116 <tr class="user-blocked-reason">
117 <td colspan="7">
118 <span i18n class="ban-reason-label">Ban reason:</span>
119 {{ user.blockedReason }}
ab998f7b
C
120 </td>
121 </tr>
122 </ng-template>
123</p-table>
141b177d 124
2fbe7f19 125<my-user-ban-modal #userBanModal (userBanned)="onUserChanged()"></my-user-ban-modal>