+
+ <td *ngIf="isSelected('username')">
+ <a i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer" [routerLink]="[ '/accounts/' + user.username ]">
+ <div class="chip two-lines">
+ <my-account-avatar [account]="user?.account"></my-account-avatar>
+ <div>
+ <span class="user-table-primary-text">{{ user.account.displayName }}</span>
+ <span class="text-muted">{{ user.username }}</span>
+ </div>
+ </div>
+ </a>
+ </td>
+
+ <td *ngIf="isSelected('email')" [title]="user.email">
+ <ng-container *ngIf="!requiresEmailVerification || user.blocked; else emailWithVerificationStatus">
+ <a class="table-email" [href]="'mailto:' + user.email">{{ user.email }}</a>
+ </ng-container>
+ </td>
+
+ <ng-template #emailWithVerificationStatus>
+ <td *ngIf="user.emailVerified === false; else emailVerifiedNotFalse" i18n-title title="User's email must be verified to login">
+ <em>? {{ user.email }}</em>
+ </td>
+ <ng-template #emailVerifiedNotFalse>
+ <td i18n-title title="User's email is verified / User can login without email verification">
+ ✓ {{ user.email }}
+ </td>
+ </ng-template>
+ </ng-template>
+
+ <td *ngIf="isSelected('quota')">
+ <div class="progress" i18n-title title="Total video quota">
+ <div class="progress-bar" role="progressbar" [style]="{ width: getUserVideoQuotaPercentage(user) + '%' }"
+ [attr.aria-valuenow]="user.rawVideoQuotaUsed" aria-valuemin="0" [attr.aria-valuemax]="user.rawVideoQuota">
+ </div>
+ <span>{{ user.videoQuotaUsed }}</span>
+ <span>{{ user.videoQuota }}</span>
+ </div>
+ </td>
+
+ <td *ngIf="isSelected('quotaDaily')">
+ <div class="progress" i18n-title title="Total daily video quota">
+ <div class="progress-bar secondary" role="progressbar" [style]="{ width: getUserVideoQuotaDailyPercentage(user) + '%' }"
+ [attr.aria-valuenow]="user.rawVideoQuotaUsedDaily" aria-valuemin="0" [attr.aria-valuemax]="user.rawVideoQuotaDaily">
+ </div>
+ <span>{{ user.videoQuotaUsedDaily }}</span>
+ <span>{{ user.videoQuotaDaily }}</span>
+ </div>
+ </td>
+
+ <td *ngIf="isSelected('role')">
+ <span *ngIf="user.blocked" class="badge badge-banned" i18n-title title="The user was banned">{{ user.roleLabel }}</span>
+ <span *ngIf="!user.blocked" class="badge" [ngClass]="getRoleClass(user.role)">{{ user.roleLabel }}</span>
+ </td>
+
+ <td *ngIf="isSelected('pluginAuth')">
+ <ng-container *ngIf="user.pluginAuth">{{ user.pluginAuth }}</ng-container>
+ </td>
+
+ <td *ngIf="isSelected('createdAt')" [title]="user.createdAt">{{ user.createdAt | date: 'short' }}</td>
+
+ <td *ngIf="isSelected('lastLoginDate')" [title]="user.lastLoginDate">{{ user.lastLoginDate | date: 'short' }}</td>