2016-05-16 00:52:07 +08:00
|
|
|
<div class="photo-container" (mouseover)="hover()" (mouseout)="mouseOut()">
|
|
|
|
<img #image [src]="gridPhoto.getThumbnailPath()">
|
2016-05-16 01:36:23 +08:00
|
|
|
<div class="info" #info [style.margin-top.px]="-infoStyle.height" [style.background]="infoStyle.background">
|
2016-05-16 00:52:07 +08:00
|
|
|
<div class="photo-name">{{gridPhoto.photo.name}}</div>
|
|
|
|
|
|
|
|
<div class="photo-position" *ngIf="gridPhoto.photo.metadata.positionData">
|
2016-05-16 01:46:25 +08:00
|
|
|
<span class="glyphicon glyphicon-map-marker"></span>
|
2016-05-17 01:36:04 +08:00
|
|
|
<template [ngIf]="getPositionText()">
|
|
|
|
<a [routerLink]="['Search',{searchText: getPositionText(), type:SearchTypes[SearchTypes.position]}]"
|
|
|
|
*ngIf="searchEnabled">
|
|
|
|
{{getPositionText()}}
|
|
|
|
</a>
|
|
|
|
<span *ngIf="!searchEnabled">{{getPositionText()}}</span>
|
|
|
|
</template>
|
2016-05-16 00:52:07 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="photo-keywords">
|
|
|
|
<template ngFor let-keyword [ngForOf]="gridPhoto.photo.metadata.keywords" let-last="last">
|
2016-05-17 01:36:04 +08:00
|
|
|
<a *ngIf="searchEnabled"
|
|
|
|
[routerLink]="['Search',{searchText: keyword, type: SearchTypes[SearchTypes.keyword]}]">#{{keyword}}</a>
|
|
|
|
<span *ngIf="!searchEnabled">#{{keyword}}</span>
|
2016-05-16 00:52:07 +08:00
|
|
|
<template [ngIf]="!last">,</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|