1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00
pigallery2/frontend/app/gallery/grid/photo/photo.grid.gallery.component.html
2016-12-28 12:30:26 +01:00

33 lines
1.5 KiB
HTML

<div #photoContainer class="photo-container" (mouseover)="hover()" (mouseout)="mouseOut()">
<img #img [src]="image.src" [hidden]="!image.show || loading.show" (load)="onImageLoad()">
<gallery-grid-photo-loading [animate]="loading.animate" *ngIf="loading.show">
</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>
<template [ngIf]="getPositionText()">
<a [routerLink]="['/search', getPositionText(), {type:SearchTypes[SearchTypes.position]}]"
*ngIf="searchEnabled">
{{getPositionText()}}
</a>
<span *ngIf="!searchEnabled">{{getPositionText()}}</span>
</template>
</div>
<div class="photo-keywords">
<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>
<template [ngIf]="!last">,</template>
</template>
</div>
</div>
</div>