mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Show rating on the UI #69
This commit is contained in:
parent
8a0f663e37
commit
228811bac0
@ -11,7 +11,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.details-icon {
|
.details-icon {
|
||||||
margin-top: 10px;
|
margin-top: .7rem;
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,6 +84,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="row" *ngIf="Rating">
|
||||||
|
<div class="col-2" title="rating" p18n-rating>
|
||||||
|
<span class="details-icon oi oi-star"></span>
|
||||||
|
</div>
|
||||||
|
<div class="col-10">
|
||||||
|
<div class="details-main mt-2" [title]="Rating + ' stars'">
|
||||||
|
<span *ngFor="let stars of [].constructor(Rating)" class="oi oi-star text-dark mr-1"></span>
|
||||||
|
<span *ngFor="let stars of [].constructor(5-Rating)" class="oi oi-star text-muted mr-1"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row" *ngIf="keywords">
|
<div class="row" *ngIf="keywords">
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
|
@ -50,6 +50,11 @@ export class InfoPanelLightboxComponent implements OnInit, OnChanges {
|
|||||||
return (this.media as VideoDTO).metadata;
|
return (this.media as VideoDTO).metadata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
get Rating(): number {
|
||||||
|
return (this.media as PhotoDTO).metadata.rating;
|
||||||
|
}
|
||||||
|
|
||||||
get PositionData(): PositionMetaData {
|
get PositionData(): PositionMetaData {
|
||||||
return (this.media as PhotoDTO).metadata.positionData;
|
return (this.media as PhotoDTO).metadata.positionData;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user