mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
0d3b8823e4
adding thumbnail loader for faces
26 lines
651 B
HTML
26 lines
651 B
HTML
<a class="button btn btn-secondary"
|
|
[routerLink]="['/search', person.name, {type: SearchTypes[SearchTypes.person]}]"
|
|
style="display: inline-block;">
|
|
|
|
|
|
<div class="photo-container"
|
|
[style.width.px]="size"
|
|
[style.height.px]="size">
|
|
<div class="photo"
|
|
*ngIf="thumbnail && thumbnail.Available"
|
|
[style.background-image]="getSanitizedThUrl()"></div>
|
|
|
|
<span *ngIf="!thumbnail || !thumbnail.Available" class="oi oi-person no-image"
|
|
aria-hidden="true">
|
|
</span>
|
|
</div>
|
|
|
|
|
|
<!--Info box -->
|
|
<div class="info">
|
|
<div class="person-name">{{person.name}} ({{person.count}})</div>
|
|
|
|
</div>
|
|
</a>
|
|
|