mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
108 lines
3.5 KiB
HTML
108 lines
3.5 KiB
HTML
<div class="content">
|
|
<div class="modal-header">
|
|
<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">
|
|
<div class="col-2">
|
|
<span class="details-icon oi oi-image"></span>
|
|
</div>
|
|
<div class="col-10">
|
|
<div class="details-main">
|
|
{{media.name}}
|
|
</div>
|
|
<div class="details-sub row">
|
|
<div class="col-4">{{media.metadata.size.width}} x {{media.metadata.size.height}}</div>
|
|
<div class="col-4" *ngIf="isPhoto()">{{calcMpx()}}MP</div>
|
|
<div class="col-4" *ngIf="media.metadata.fileSize">{{calcSize(media.metadata.fileSize)}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-2">
|
|
<span class="details-icon oi oi-calendar"></span>
|
|
</div>
|
|
<div class="col-10">
|
|
<div class="details-main">
|
|
{{ media.metadata.creationDate | date: (isThisYear() ? 'MMMM d': 'longDate')}}
|
|
</div>
|
|
<div class="details-sub row">
|
|
<div class="col-12">{{ media.metadata.creationDate | date :'EEEE'}}, {{getTime()}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="row" *ngIf="VideoData">
|
|
<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>: {{calcSize(VideoData.bitRate)}}/s</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" *ngIf="CameraData">
|
|
<div class="col-2">
|
|
<span class="details-icon oi oi-camera-slr"></span>
|
|
</div>
|
|
<div class="col-10">
|
|
<div class="details-main">
|
|
{{CameraData.model || CameraData.make || "Camera"}}
|
|
</div>
|
|
<div class="details-sub row">
|
|
<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>
|
|
<div class="col-3" *ngIf="CameraData.focalLength">
|
|
{{CameraData.focalLength}}mm
|
|
</div>
|
|
<div class="col-12" *ngIf="CameraData.lens">{{CameraData.lens}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" *ngIf="hasPositionData()">
|
|
<div class="col-2">
|
|
<span class="details-icon oi oi-map-marker"></span>
|
|
</div>
|
|
<div class="col-10">
|
|
<div class="details-main">
|
|
{{getPositionText() || "Position"}}
|
|
</div>
|
|
<div class="details-sub row" *ngIf="hasGPS()">
|
|
<div class="col-12">
|
|
{{PositionData.GPSData.latitude.toFixed(3)}},
|
|
{{PositionData.GPSData.longitude.toFixed(3)}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="map" *ngIf="hasGPS() && mapEnabled">
|
|
<agm-map
|
|
[disableDefaultUI]="true"
|
|
[zoomControl]="false"
|
|
[streetViewControl]="false"
|
|
[zoom]="10"
|
|
[latitude]="PositionData.GPSData.latitude"
|
|
[longitude]="PositionData.GPSData.longitude">
|
|
<agm-marker
|
|
[latitude]="PositionData.GPSData.latitude"
|
|
[longitude]="PositionData.GPSData.longitude">
|
|
</agm-marker>
|
|
</agm-map>
|
|
</div>
|
|
</div>
|