0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Fixed the star rating in the product card

refs https://github.com/TryGhost/Team/issues/1245

- It wasn't hidden in the editor preview when disabled
This commit is contained in:
Thibaut Patel 2021-12-07 16:17:13 +01:00
parent 9abe330714
commit 8e14a23fea

View file

@ -202,7 +202,7 @@
<div class="kg-product-card-title-container"> <div class="kg-product-card-title-container">
<h4 class="kg-product-card-title">{{{@payload.productTitle}}}</h4> <h4 class="kg-product-card-title">{{{@payload.productTitle}}}</h4>
</div> </div>
{{#if @payload.productStarRating}} {{#if @payload.productRatingEnabled}}
<div class="kg-product-card-rating-edit"> <div class="kg-product-card-rating-edit">
<span class="{{if (gte @payload.productStarRating 1) "kg-product-card-rating-active gh-btn-group-selected"}} kg-product-card-rating-star">{{svg-jar "koenig/kg-star" class="w4 h4"}}</span> <span class="{{if (gte @payload.productStarRating 1) "kg-product-card-rating-active gh-btn-group-selected"}} kg-product-card-rating-star">{{svg-jar "koenig/kg-star" class="w4 h4"}}</span>
<span class="{{if (gte @payload.productStarRating 2) "kg-product-card-rating-active gh-btn-group-selected"}} kg-product-card-rating-star">{{svg-jar "koenig/kg-star" class="w4 h4"}}</span> <span class="{{if (gte @payload.productStarRating 2) "kg-product-card-rating-active gh-btn-group-selected"}} kg-product-card-rating-star">{{svg-jar "koenig/kg-star" class="w4 h4"}}</span>