-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted top-readers.component.html
- Loading branch information
1 parent
6ff1e28
commit f3c938a
Showing
3 changed files
with
60 additions
and
25 deletions.
There are no files selected for viewing
49 changes: 26 additions & 23 deletions
49
UI/Web/src/app/statistics/_components/top-readers/top-readers.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
<div class="row g-0 mb-2 align-items-center"> | ||
<ng-container *transloco="let t; read:'top-readers'"> | ||
<div class="row g-0 mb-2 align-items-center"> | ||
<div class="col-4"> | ||
<h4>Top Readers</h4> | ||
<h4>{{t('title')}}</h4> | ||
</div> | ||
<div class="col-8"> | ||
<form [formGroup]="formGroup" class="d-inline-flex float-end"> | ||
<div class="d-flex"> | ||
<label for="time-select-top-reads" class="form-check-label"></label> | ||
<select id="time-select-top-reads" class="form-select" formControlName="days" | ||
[class.is-invalid]="formGroup.get('days')?.invalid && formGroup.get('days')?.touched"> | ||
<option *ngFor="let item of timePeriods" [value]="item.value">{{item.title}}</option> | ||
</select> | ||
</div> | ||
</form> | ||
<form [formGroup]="formGroup" class="d-inline-flex float-end"> | ||
<div class="d-flex"> | ||
<label for="time-select-top-reads" class="form-check-label visually-hidden">{{t('time-selection-label')}}</label> | ||
<select id="time-select-top-reads" class="form-select" formControlName="days" | ||
[class.is-invalid]="formGroup.get('days')?.invalid && formGroup.get('days')?.touched"> | ||
<option *ngFor="let item of timePeriods" [value]="item.value">{{t(item.title)}}</option> | ||
</select> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<ng-container> | ||
<ng-container> | ||
<div class="grid row g-0"> | ||
<div class="card" *ngFor="let user of (users$ | async)"> | ||
<div class="card-header text-center"> | ||
{{user.username}} | ||
</div> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item">Comics: {{user.comicsTime}} hrs</li> | ||
<li class="list-group-item">Manga: {{user.mangaTime}} hrs</li> | ||
<li class="list-group-item">Books: {{user.booksTime}} hrs</li> | ||
</ul> | ||
<div class="card" *ngFor="let user of (users$ | async)"> | ||
<div class="card-header text-center"> | ||
{{user.username}} | ||
</div> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item">{{t('comics-label', {value: user.comicsTime})}}</li> | ||
<li class="list-group-item">{{t('manga-label', {value: user.mangaTime})}}</li> | ||
<li class="list-group-item">{{t('books-label', {value: user.booksTime})}}</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</ng-container> | ||
</ng-container> | ||
|
||
|
||
|
||
|
||
</ng-container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters