mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-16 11:37:13 +02:00
34 lines
1.5 KiB
HTML
34 lines
1.5 KiB
HTML
<div #photoContainer class="photo-container" (mouseover)="hover()" (mouseout)="mouseOut()">
|
|
<img #img [src]="thumbnail.Src" *ngIf="thumbnail.Available">
|
|
|
|
<gallery-grid-photo-loading [animate]="thumbnail.loading" *ngIf="!thumbnail.Available">
|
|
</gallery-grid-photo-loading>
|
|
|
|
<!--Info box -->
|
|
<div #info class="info" [style.margin-top.px]="-infoStyle.height"
|
|
[style.background]="infoStyle.background">
|
|
<div class="photo-name">{{gridPhoto.photo.name}}</div>
|
|
|
|
<div class="photo-position" *ngIf="gridPhoto.photo.metadata.positionData">
|
|
<span class="glyphicon glyphicon-map-marker"></span>
|
|
<ng-template [ngIf]="getPositionText()">
|
|
<a [routerLink]="['/search', getPositionText(), {type:SearchTypes[SearchTypes.position]}]"
|
|
*ngIf="searchEnabled">
|
|
{{getPositionText()}}
|
|
</a>
|
|
<span *ngIf="!searchEnabled">{{getPositionText()}}</span>
|
|
</ng-template>
|
|
</div>
|
|
|
|
<div class="photo-keywords">
|
|
<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>
|
|
<ng-template [ngIf]="!last">,</ng-template>
|
|
</ng-template>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|