2017-07-16 17:15:42 +02:00
|
|
|
<div #photoContainer class="photo-container" (mouseover)="mouseOver()" (mouseout)="mouseOut()">
|
2017-06-22 22:07:47 +02:00
|
|
|
<img #img [src]="thumbnail.Src" *ngIf="thumbnail.Available">
|
2016-06-17 11:25:15 +02:00
|
|
|
|
2018-05-03 19:17:08 -04:00
|
|
|
<app-gallery-grid-photo-loading
|
2017-07-17 23:11:35 +02:00
|
|
|
[error]="thumbnail.Error"
|
2017-07-15 20:23:02 +02:00
|
|
|
[animate]="thumbnail.loading"
|
|
|
|
*ngIf="!thumbnail.Available">
|
2018-05-03 19:17:08 -04:00
|
|
|
</app-gallery-grid-photo-loading>
|
2016-06-17 00:05:31 +02:00
|
|
|
|
2017-07-15 20:23:02 +02:00
|
|
|
<!--Info box -->
|
|
|
|
<div #info class="info"
|
|
|
|
*ngIf="infoBar.visible"
|
|
|
|
[style.margin-top.px]="infoBar.marginTop"
|
2018-05-07 15:42:32 -04:00
|
|
|
[style.background]="infoBar.background"
|
|
|
|
[style.width.px]="container.nativeElement.offsetWidth">
|
2017-07-15 20:23:02 +02:00
|
|
|
<div class="photo-name">{{gridPhoto.photo.name}}</div>
|
2016-05-15 18:52:07 +02:00
|
|
|
|
2018-05-13 16:59:57 -04:00
|
|
|
<div class="photo-position" *ngIf="gridPhoto.hasPositionData()">
|
|
|
|
<span class="oi oi-map-marker"></span>
|
2017-07-15 20:23:02 +02:00
|
|
|
<ng-template [ngIf]="getPositionText()">
|
|
|
|
<a [routerLink]="['/search', getPositionText(), {type:SearchTypes[SearchTypes.position]}]"
|
|
|
|
*ngIf="searchEnabled">
|
|
|
|
{{getPositionText()}}
|
|
|
|
</a>
|
|
|
|
<span *ngIf="!searchEnabled">{{getPositionText()}}</span>
|
|
|
|
</ng-template>
|
|
|
|
</div>
|
2016-05-15 18:52:07 +02:00
|
|
|
|
2017-07-16 17:15:42 +02:00
|
|
|
<div class="photo-keywords" *ngIf="gridPhoto.photo.metadata.keywords && gridPhoto.photo.metadata.keywords.length">
|
2017-07-15 20:23:02 +02:00
|
|
|
<ng-template ngFor let-keyword [ngForOf]="gridPhoto.photo.metadata.keywords" let-last="last">
|
|
|
|
<a *ngIf="searchEnabled"
|
|
|
|
[routerLink]="['/search', keyword, {type: SearchTypes[SearchTypes.keyword]}]">#{{keyword}}</a>
|
|
|
|
<span *ngIf="!searchEnabled">#{{keyword}}</span>
|
2018-05-22 20:27:07 -04:00
|
|
|
<ng-template [ngIf]="!last">, </ng-template>
|
2017-07-15 20:23:02 +02:00
|
|
|
</ng-template>
|
2016-05-15 18:52:07 +02:00
|
|
|
|
|
|
|
</div>
|
2017-07-15 20:23:02 +02:00
|
|
|
</div>
|
2017-06-10 22:32:56 +02:00
|
|
|
</div>
|