1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00
pigallery2/frontend/app/gallery/grid/photo/photo.grid.gallery.component.html

33 lines
1.5 KiB
HTML
Raw Normal View History

<div #photoContainer class="photo-container" (mouseover)="hover()" (mouseout)="mouseOut()">
2017-03-20 00:01:41 +01:00
<img #img [src]="thumbnail.src" [hidden]="!thumbnail.available">
2016-06-17 11:25:15 +02:00
2017-03-20 00:01:41 +01:00
<gallery-grid-photo-loading [animate]="thumbnail.loading" *ngIf="!thumbnail.available">
2016-06-17 11:25:15 +02:00
</gallery-grid-photo-loading>
2016-06-17 00:05:31 +02:00
<!--Info box -->
2016-06-23 22:25:16 +02:00
<div #info class="info" [style.margin-top.px]="-infoStyle.height"
2016-06-17 00:05:31 +02:00
[style.background]="infoStyle.background">
2016-05-15 18:52:07 +02:00
<div class="photo-name">{{gridPhoto.photo.name}}</div>
<div class="photo-position" *ngIf="gridPhoto.photo.metadata.positionData">
2016-05-15 19:46:25 +02:00
<span class="glyphicon glyphicon-map-marker"></span>
2017-05-27 10:15:57 +02:00
<ng-template [ngIf]="getPositionText()">
<a [routerLink]="['/search', getPositionText(), {type:SearchTypes[SearchTypes.position]}]"
2016-05-16 19:36:04 +02:00
*ngIf="searchEnabled">
{{getPositionText()}}
</a>
<span *ngIf="!searchEnabled">{{getPositionText()}}</span>
2017-05-27 10:15:57 +02:00
</ng-template>
2016-05-15 18:52:07 +02:00
</div>
<div class="photo-keywords">
2017-05-27 10:15:57 +02:00
<ng-template ngFor let-keyword [ngForOf]="gridPhoto.photo.metadata.keywords" let-last="last">
2016-05-16 19:36:04 +02:00
<a *ngIf="searchEnabled"
[routerLink]="['/search', keyword, {type: SearchTypes[SearchTypes.keyword]}]">#{{keyword}}</a>
2016-05-16 19:36:04 +02:00
<span *ngIf="!searchEnabled">#{{keyword}}</span>
2017-05-27 10:15:57 +02:00
<ng-template [ngIf]="!last">,</ng-template>
</ng-template>
2016-05-15 18:52:07 +02:00
</div>
</div>
</div>