mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
fixing infobox error
This commit is contained in:
parent
0efd28c10f
commit
86402d229f
@ -27,12 +27,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-10">
|
<div class="col-10">
|
||||||
<div class="details-main">
|
<div class="details-main">
|
||||||
<ng-container *ngIf="getYear() !== getCurrentYear()">
|
{{ photo.metadata.creationDate | date: (isThisYear() ? 'MMMM d': 'longDate')}}
|
||||||
{{ photo.metadata.creationDate | date :'longDate'}}
|
|
||||||
</ng-container>
|
|
||||||
<ng-container *ngIf="getYear() === getCurrentYear()">
|
|
||||||
{{ photo.metadata.creationDate | date :'MMMM d'}}
|
|
||||||
</ng-container>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="details-sub row">
|
<div class="details-sub row">
|
||||||
<div class="col-12">{{ photo.metadata.creationDate | date :'EEEE'}}, {{getTime()}}</div>
|
<div class="col-12">{{ photo.metadata.creationDate | date :'EEEE'}}, {{getTime()}}</div>
|
||||||
|
@ -31,8 +31,9 @@ export class InfoPanelLightboxComponent {
|
|||||||
return size.toFixed(2) + postFixes[index];
|
return size.toFixed(2) + postFixes[index];
|
||||||
}
|
}
|
||||||
|
|
||||||
getCurrentYear() {
|
isThisYear() {
|
||||||
return (new Date()).getFullYear();
|
return (new Date()).getFullYear() ===
|
||||||
|
(new Date(this.photo.metadata.creationDate)).getFullYear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user