1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/gallery/grid/photo/photo.grid.gallery.component.html

39 lines
1.5 KiB
HTML
Raw Normal View History

2017-07-16 23:15:42 +08:00
<div #photoContainer class="photo-container" (mouseover)="mouseOver()" (mouseout)="mouseOut()">
2017-06-23 04:07:47 +08:00
<img #img [src]="thumbnail.Src" *ngIf="thumbnail.Available">
2016-06-17 17:25:15 +08:00
2018-05-04 07:17:08 +08:00
<app-gallery-grid-photo-loading
2017-07-18 05:11:35 +08:00
[error]="thumbnail.Error"
2017-07-16 02:23:02 +08:00
[animate]="thumbnail.loading"
*ngIf="!thumbnail.Available">
2018-05-04 07:17:08 +08:00
</app-gallery-grid-photo-loading>
2016-06-17 06:05:31 +08:00
2017-07-16 02:23:02 +08:00
<!--Info box -->
<div #info class="info"
*ngIf="infoBar.visible"
[style.margin-top.px]="infoBar.marginTop"
[style.background]="infoBar.background">
<div class="photo-name">{{gridPhoto.photo.name}}</div>
2016-05-16 00:52:07 +08:00
2017-07-16 02:23:02 +08:00
<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>
2016-05-16 00:52:07 +08:00
2017-07-16 23:15:42 +08:00
<div class="photo-keywords" *ngIf="gridPhoto.photo.metadata.keywords && gridPhoto.photo.metadata.keywords.length">
2017-07-16 02:23:02 +08: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>
<ng-template [ngIf]="!last">,</ng-template>
</ng-template>
2016-05-16 00:52:07 +08:00
</div>
2017-07-16 02:23:02 +08:00
</div>
</div>