Skip to content
This repository was archived by the owner on Mar 15, 2018. It is now read-only.

Commit 87d2e1c

Browse files
committed
make review stars consistent with mocks (bug 787195)
1 parent f8eb5f5 commit 87d2e1c

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

media/css/mkt/ratings.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ header.product {
242242
width: 40px;
243243
}
244244
}
245+
&.large {
246+
background: url(../../img/mkt/stars/sprite_18.png) no-repeat;
247+
width: 90px;
248+
height: 18px;
249+
}
245250
}
246251

247252
.html-rtl .stars {

mkt/detail/templates/detail/includes/ratings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
</ul>
2121
<div class="{{ 'split' if can_review else 'full' }}">
2222
<a class="fatbutton average-rating" href="{{ product.get_ratings_url() }}">
23-
{{ product.average_rating|float|stars }}
2423
<span>
2524
{% trans cnt=product.total_reviews, num=product.total_reviews|numberfmt %}
2625
{{ num }} review
2726
{% pluralize %}
2827
{{ num }} reviews
2928
{% endtrans %}
3029
</span>
30+
{{ product.average_rating|float|stars(large=True) }}
3131
</a>
3232
</div>
3333
{# TODO: Expose maybe sweet ratings breakdown later. #}

mkt/ratings/templates/ratings/rating.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h3 class="review-heading-profile">
2020
</h3>
2121
{% endif %}
2222
{% if not is_reply %}
23-
{{ review.rating|stars }}
23+
{{ review.rating|stars(large=True) }}
2424
{% endif %}
2525
<span class="byline">
2626
{# TODO: Re-link user profile pages if desktop implements them. #}

0 commit comments

Comments
 (0)