Skip to content

Commit

Permalink
review - little css changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dan269 committed Dec 10, 2019
1 parent c171e0f commit e4b0c04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Grand.Web/Views/Customer/Reviews.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
int ratingPercent = review.Rating * 20;
<div class="card comment product-review-item">
<div class="card-header review-item-head pr-0">
<div class="ratings">
<div class="ratings justify-content-start">
<div class="rating-box">
<div class="rating" style="width: @(ratingPercent)%">
</div>
Expand Down
8 changes: 6 additions & 2 deletions Grand.Web/Views/Product/_ProductReviewOverview.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@if (Model.AllowCustomerReviews)
{
<div class="product-reviews-overview d-inline-flex align-items-center flex-wrap" @if (Model.TotalReviews > 0) { <text> itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating" </text> }>
<div class="product-review-box d-inline-block order-2">
<div class="product-review-box d-inline-block order-1">
<div class="ratings">
<div class="rating-box">
<div class="rating" style="width: @(ratingPercent)%">
Expand All @@ -28,7 +28,11 @@
</div>
@* microdata info*@
decimal ratingValue = ratingPercent / (decimal)20;
<span class="order-1 mr-2 review-count" itemprop="ratingValue">@ratingValue.ToString("0.0", new CultureInfo("en-US"))</span>
<div class="order-2 mr-2 review-count" itemprop="ratingValue">
<a class="btn btn-sm py-0 pr-0 review-scroll-button">
<strong>(@ratingValue.ToString("0.0", new CultureInfo("en-US")))</strong>
</a>
</div>
<span itemprop="reviewCount" style="display: none;">@Model.TotalReviews</span>
}
else
Expand Down

0 comments on commit e4b0c04

Please sign in to comment.