1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/ui/duplicates/duplicates.component.html

39 lines
1.5 KiB
HTML
Raw Normal View History

2019-01-18 07:26:20 +08:00
<app-frame>
<div body class="container">
2019-01-19 07:18:20 +08:00
<ng-template [ngIf]="renderedDirGroups">
2019-01-20 00:31:36 +08:00
<div class="alert alert-secondary" role="alert" *ngIf=" duplicateCount.photos >0" i18n>
Listing <strong>{{duplicateCount.pairs}}</strong> duplicates ({{duplicateCount.photos}} photos).
</div>
<div class="alert alert-secondary" role="alert" *ngIf=" duplicateCount.photos ==0" i18n>
No duplicates found
</div>
2019-01-19 07:18:20 +08:00
<div *ngFor="let group of renderedDirGroups">
<strong>{{group.name}}</strong>
<div *ngFor="let pairs of group.duplicates" class="card">
<div class="card-body">
2019-01-20 00:31:36 +08:00
<a *ngFor="let media of pairs.media"
class="row"
[routerLink]="['/gallery', getDirectoryPath(media.directory)]"
[queryParams]="queryService.getParams()">
2019-01-19 07:18:20 +08:00
<app-duplicates-photo class="col-1" [media]="media"></app-duplicates-photo>
2019-01-20 00:31:36 +08:00
<div class="col-6">
/{{getDirectoryPath(media.directory)}}/<strong>{{media.name}}</strong>
2019-01-19 07:18:20 +08:00
</div>
<div class="col-2">
2019-01-20 00:31:36 +08:00
{{media.metadata.fileSize | fileSize}}
2019-01-19 07:18:20 +08:00
</div>
2019-01-20 00:31:36 +08:00
<div class="col-3" [title]="media.metadata.creationDate">
{{media.metadata.creationDate | date}}, {{media.metadata.creationDate | date:'mediumTime'}}
2019-01-19 07:18:20 +08:00
</div>
2019-01-20 00:31:36 +08:00
</a>
2019-01-18 07:26:20 +08:00
</div>
</div>
</div>
</ng-template>
2019-01-19 07:18:20 +08:00
<ng-template [ngIf]="!renderedDirGroups">
2019-01-18 07:26:20 +08:00
loading
</ng-template>
</div>
</app-frame>