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

116 lines
3.8 KiB
HTML
Raw Normal View History

<div class="content">
2017-07-18 00:30:16 +08:00
<div class="modal-header">
2018-05-14 04:59:57 +08:00
<h2 class="modal-title" i18n>Info</h2>
<button type="button" class="close" (click)="close()" aria-label="Close">
<span class="oi oi-x" aria-hidden="true"></span>
</button>
</div>
<div class="row">
2018-05-14 04:59:57 +08:00
<div class="col-2">
<span class="details-icon oi oi-image"></span>
</div>
2018-05-14 04:59:57 +08:00
<div class="col-10">
2018-12-03 03:57:16 +08:00
<div class="details-main dir-link" title="{{FullPath}}"
[routerLink]="['/gallery', DirectoryPath]"
[queryParams]="queryService.getParams()">
2018-11-05 02:28:32 +08:00
{{media.name}}
</div>
2018-05-14 04:59:57 +08:00
<div class="details-sub row">
2018-11-05 02:28:32 +08:00
<div class="col-4">{{media.metadata.size.width}} x {{media.metadata.size.height}}</div>
2018-11-18 03:15:48 +08:00
<div class="col-4" *ngIf="isPhoto()">{{calcMpx()}}MP</div>
2018-12-10 06:25:39 +08:00
<div class="col-4" *ngIf="media.metadata.fileSize">{{media.metadata.fileSize | fileSize}}</div>
</div>
</div>
</div>
<div class="row" *ngIf="media.metadata.creationDate">
2018-05-14 04:59:57 +08:00
<div class="col-2">
<span class="details-icon oi oi-calendar"></span>
</div>
2018-05-14 04:59:57 +08:00
<div class="col-10">
<div class="details-main">
{{ media.metadata.creationDate | date: (isThisYear() ? 'MMMM d' : 'longDate')}}
</div>
2018-05-14 04:59:57 +08:00
<div class="details-sub row">
2018-11-05 02:28:32 +08:00
<div class="col-12">{{ media.metadata.creationDate | date :'EEEE'}}, {{getTime()}}</div>
</div>
</div>
</div>
2018-11-18 03:15:48 +08:00
<div class="row" *ngIf="VideoData && (VideoData.duration || VideoData.bitRate)">
2018-11-18 03:15:48 +08:00
<div class="col-2">
<span class="details-icon oi oi-video"></span>
</div>
<div class="col-10">
<div class="details-main">
{{"Video"}}
</div>
<div class="details-sub row">
<div class="col-6" *ngIf="VideoData.duration">
<ng-container i18n>duration</ng-container>
: {{VideoData.duration | duration}}</div>
<div class="col-6" *ngIf="VideoData.bitRate">
<ng-container i18n>bit rate</ng-container>
2018-12-18 07:06:25 +08:00
: {{VideoData.bitRate | fileSize}}/s
</div>
2018-11-18 03:15:48 +08:00
</div>
</div>
</div>
2018-11-05 02:28:32 +08:00
<div class="row" *ngIf="CameraData">
2018-05-14 04:59:57 +08:00
<div class="col-2">
<span class="details-icon oi oi-camera-slr"></span>
</div>
2018-05-14 04:59:57 +08:00
<div class="col-10">
<div class="details-main">
2018-11-05 02:28:32 +08:00
{{CameraData.model || CameraData.make || "Camera"}}
</div>
2018-05-14 04:59:57 +08:00
<div class="details-sub row">
2018-11-05 02:28:32 +08:00
<div class="col-3" *ngIf="CameraData.ISO">ISO{{CameraData.ISO}}</div>
<div class="col-3" *ngIf="CameraData.fStop">f/{{CameraData.fStop}}</div>
<div class="col-3" *ngIf="CameraData.exposure">
{{toFraction(CameraData.exposure)}}s
</div>
2018-11-05 02:28:32 +08:00
<div class="col-3" *ngIf="CameraData.focalLength">
{{CameraData.focalLength}}mm
</div>
2018-11-05 02:28:32 +08:00
<div class="col-12" *ngIf="CameraData.lens">{{CameraData.lens}}</div>
</div>
</div>
</div>
2018-05-14 04:59:57 +08:00
<div class="row" *ngIf="hasPositionData()">
<div class="col-2">
<span class="details-icon oi oi-map-marker"></span>
</div>
2018-05-14 04:59:57 +08:00
<div class="col-10">
<div class="details-main">
{{getPositionText() || "Position"}}
</div>
2018-05-14 04:59:57 +08:00
<div class="details-sub row" *ngIf="hasGPS()">
<div class="col-12">
2018-11-18 03:15:48 +08:00
{{PositionData.GPSData.latitude.toFixed(3)}},
{{PositionData.GPSData.longitude.toFixed(3)}}
</div>
</div>
</div>
</div>
2017-07-14 05:39:09 +08:00
<div id="map" *ngIf="hasGPS() && mapEnabled">
<yaga-map [zoom]="10"
[lat]="PositionData.GPSData.latitude"
[lng]="PositionData.GPSData.longitude">
<yaga-marker
[lat]="PositionData.GPSData.latitude"
[lng]="PositionData.GPSData.longitude">
</yaga-marker>
2018-12-08 18:28:56 +08:00
<yaga-attribution-control
prefix=""
[attributions]="mapService.Attributions">
</yaga-attribution-control>
<yaga-tile-layer [url]="mapService.MapLayer"></yaga-tile-layer>
</yaga-map>
</div>
</div>