- <th i18n pSortableColumn="username">Username <p-sortIcon field="username"></p-sortIcon></th>
- <th i18n>Email</th>
- <th i18n pSortableColumn="videoQuotaUsed">Video quota <p-sortIcon field="videoQuotaUsed"></p-sortIcon></th>
- <th i18n>Role</th>
- <th i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
- <th style="width: 50px;"></th>
+ <th style="width: 60px;">
+ <div class="c-hand column-toggle" ngbDropdown placement="bottom-left auto" container="body" autoClose="outside">
+ <my-global-icon iconName="columns" ngbDropdownToggle></my-global-icon>
+
+ <div role="menu" class="dropdown-menu" ngbDropdownMenu>
+ <div class="dropdown-header" i18n>Table parameters</div>
+ <div ngbDropdownItem class="dropdown-item">
+ <my-select-checkbox
+ name="columns"
+ [availableItems]="columns"
+ [selectableGroup]="false" [(ngModel)]="selectedColumns"
+ i18n-placeholder placeholder="Select columns"
+ >
+ </my-select-checkbox>
+ </div>
+ <div ngbDropdownItem class="dropdown-item">
+ <my-peertube-checkbox inputName="highlightBannedUsers" [(ngModel)]="highlightBannedUsers"
+ i18n-labelText labelText="Highlight banned users"></my-peertube-checkbox>
+ </div>
+ </div>
+ </div>
+ </th>
+ <th *ngIf="isSelected('username')" pResizableColumn pSortableColumn="username">{{ getColumn('username').label }} <p-sortIcon field="username"></p-sortIcon></th>
+ <th *ngIf="isSelected('email')">{{ getColumn('email').label }}</th>
+ <th *ngIf="isSelected('quota')" style="width: 160px;" pSortableColumn="videoQuotaUsed">{{ getColumn('quota').label }} <p-sortIcon field="videoQuotaUsed"></p-sortIcon></th>
+ <th *ngIf="isSelected('quotaDaily')" style="width: 160px;">{{ getColumn('quotaDaily').label }}</th>
+ <th *ngIf="isSelected('role')" style="width: 120px;" pSortableColumn="role">{{ getColumn('role').label }} <p-sortIcon field="role"></p-sortIcon></th>
+ <th *ngIf="isSelected('pluginAuth')" style="width: 140px;" pResizableColumn >{{ getColumn('pluginAuth').label }}</th>
+ <th *ngIf="isSelected('createdAt')" style="width: 150px;" pSortableColumn="createdAt">{{ getColumn('createdAt').label }} <p-sortIcon field="createdAt"></p-sortIcon></th>
+ <th *ngIf="isSelected('lastLoginDate')" style="width: 150px;" pSortableColumn="lastLoginDate">{{ getColumn('lastLoginDate').label }} <p-sortIcon field="lastLoginDate"></p-sortIcon></th>