|
@ -4,44 +4,47 @@ |
|
|
<div class="users"> |
|
|
<div class="users"> |
|
|
<table class="gf-table"> |
|
|
<table class="gf-table"> |
|
|
<thead> |
|
|
<thead> |
|
|
<tr class="mat-header-row"> |
|
|
<tr class="mat-mdc-header-row"> |
|
|
<th class="mat-header-cell px-1 py-2 text-right">#</th> |
|
|
<th class="mat-mdc-header-cell px-1 py-2 text-right">#</th> |
|
|
<th class="mat-header-cell px-1 py-2" i18n>User</th> |
|
|
<th class="mat-mdc-header-cell px-1 py-2" i18n>User</th> |
|
|
<th |
|
|
<th |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
class="mat-header-cell px-1 py-2" |
|
|
class="mat-mdc-header-cell px-1 py-2" |
|
|
> |
|
|
> |
|
|
<ng-container i18n>Country</ng-container> |
|
|
<ng-container i18n>Country</ng-container> |
|
|
</th> |
|
|
</th> |
|
|
<th class="mat-header-cell px-1 py-2"> |
|
|
<th class="mat-mdc-header-cell px-1 py-2"> |
|
|
<ng-container i18n>Registration</ng-container> |
|
|
<ng-container i18n>Registration</ng-container> |
|
|
</th> |
|
|
</th> |
|
|
<th class="mat-header-cell px-1 py-2 text-right"> |
|
|
<th class="mat-mdc-header-cell px-1 py-2 text-right"> |
|
|
<ng-container i18n>Accounts</ng-container> |
|
|
<ng-container i18n>Accounts</ng-container> |
|
|
</th> |
|
|
</th> |
|
|
<th class="mat-header-cell px-1 py-2 text-right"> |
|
|
<th class="mat-mdc-header-cell px-1 py-2 text-right"> |
|
|
<ng-container i18n>Activities</ng-container> |
|
|
<ng-container i18n>Activities</ng-container> |
|
|
</th> |
|
|
</th> |
|
|
<th |
|
|
<th |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
class="mat-header-cell px-1 py-2 text-right" |
|
|
class="mat-mdc-header-cell px-1 py-2 text-right" |
|
|
> |
|
|
> |
|
|
<ng-container i18n>Engagement per Day</ng-container> |
|
|
<ng-container i18n>Engagement per Day</ng-container> |
|
|
</th> |
|
|
</th> |
|
|
<th |
|
|
<th |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
class="mat-header-cell px-1 py-2" |
|
|
class="mat-mdc-header-cell px-1 py-2" |
|
|
i18n |
|
|
i18n |
|
|
> |
|
|
> |
|
|
Last Request |
|
|
Last Request |
|
|
</th> |
|
|
</th> |
|
|
<th class="mat-header-cell px-1 py-2"></th> |
|
|
<th class="mat-mdc-header-cell px-1 py-2"></th> |
|
|
</tr> |
|
|
</tr> |
|
|
</thead> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tbody> |
|
|
<tr *ngFor="let userItem of users; let i = index" class="mat-row"> |
|
|
<tr |
|
|
<td class="mat-cell px-1 py-2 text-right">{{ i + 1 }}</td> |
|
|
*ngFor="let userItem of users; let i = index" |
|
|
<td class="mat-cell px-1 py-2"> |
|
|
class="mat-mdc-row" |
|
|
|
|
|
> |
|
|
|
|
|
<td class="mat-mdc-cell px-1 py-2 text-right">{{ i + 1 }}</td> |
|
|
|
|
|
<td class="mat-mdc-cell px-1 py-2"> |
|
|
<div class="d-flex align-items-center"> |
|
|
<div class="d-flex align-items-center"> |
|
|
<span class="d-none d-sm-inline-block text-monospace" |
|
|
<span class="d-none d-sm-inline-block text-monospace" |
|
|
>{{ userItem.id }}</span |
|
|
>{{ userItem.id }}</span |
|
@ -59,23 +62,23 @@ |
|
|
</td> |
|
|
</td> |
|
|
<td |
|
|
<td |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
class="mat-cell px-1 py-2" |
|
|
class="mat-mdc-cell px-1 py-2" |
|
|
> |
|
|
> |
|
|
<span class="h5" [title]="userItem.country" |
|
|
<span class="h5" [title]="userItem.country" |
|
|
>{{ getEmojiFlag(userItem.country) }}</span |
|
|
>{{ getEmojiFlag(userItem.country) }}</span |
|
|
> |
|
|
> |
|
|
</td> |
|
|
</td> |
|
|
<td class="mat-cell px-1 py-2"> |
|
|
<td class="mat-mdc-cell px-1 py-2"> |
|
|
{{ formatDistanceToNow(userItem.createdAt) }} |
|
|
{{ formatDistanceToNow(userItem.createdAt) }} |
|
|
</td> |
|
|
</td> |
|
|
<td class="mat-cell px-1 py-2 text-right"> |
|
|
<td class="mat-mdc-cell px-1 py-2 text-right"> |
|
|
<gf-value |
|
|
<gf-value |
|
|
class="d-inline-block justify-content-end" |
|
|
class="d-inline-block justify-content-end" |
|
|
[locale]="user?.settings?.locale" |
|
|
[locale]="user?.settings?.locale" |
|
|
[value]="userItem.accountCount" |
|
|
[value]="userItem.accountCount" |
|
|
></gf-value> |
|
|
></gf-value> |
|
|
</td> |
|
|
</td> |
|
|
<td class="mat-cell px-1 py-2 text-right"> |
|
|
<td class="mat-mdc-cell px-1 py-2 text-right"> |
|
|
<gf-value |
|
|
<gf-value |
|
|
class="d-inline-block justify-content-end" |
|
|
class="d-inline-block justify-content-end" |
|
|
[locale]="user?.settings?.locale" |
|
|
[locale]="user?.settings?.locale" |
|
@ -84,7 +87,7 @@ |
|
|
</td> |
|
|
</td> |
|
|
<td |
|
|
<td |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
class="mat-cell px-1 py-2 text-right" |
|
|
class="mat-mdc-cell px-1 py-2 text-right" |
|
|
> |
|
|
> |
|
|
<gf-value |
|
|
<gf-value |
|
|
class="d-inline-block justify-content-end" |
|
|
class="d-inline-block justify-content-end" |
|
@ -95,11 +98,11 @@ |
|
|
</td> |
|
|
</td> |
|
|
<td |
|
|
<td |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
*ngIf="hasPermissionForSubscription" |
|
|
class="mat-cell px-1 py-2" |
|
|
class="mat-mdc-cell px-1 py-2" |
|
|
> |
|
|
> |
|
|
{{ formatDistanceToNow(userItem.lastActivity) }} |
|
|
{{ formatDistanceToNow(userItem.lastActivity) }} |
|
|
</td> |
|
|
</td> |
|
|
<td class="mat-cell px-1 py-2"> |
|
|
<td class="mat-mdc-cell px-1 py-2"> |
|
|
<button |
|
|
<button |
|
|
class="mx-1 no-min-width px-2" |
|
|
class="mx-1 no-min-width px-2" |
|
|
mat-button |
|
|
mat-button |
|
|