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-07-15 01:31:34 +08:00
|
|
|
<div class="alert alert-secondary" role="alert" *ngIf=" duplicateCount.photos >0">
|
2019-01-20 00:31:36 +08:00
|
|
|
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>
|