app/views/spree/shared/_rating.html.erb in solidus_reviews-1.0.0 vs app/views/spree/shared/_rating.html.erb in solidus_reviews-1.1.0
- old
+ new
@@ -1,14 +1,14 @@
<% stars = product.stars %>
<% reviews_count = product.reviews_count %>
<div class="ratings">
- <p><%= Spree.t('average_customer_rating') %>: </p>
+ <p><%= I18n.t('spree.average_customer_rating') %>: </p>
<p class="ratings-stars">
<span title="<%= txt_stars(stars) %>">
- <%= render 'spree/reviews/stars', :stars => stars %>
+ <%= render 'spree/reviews/stars', stars: stars %>
</span>
</p>
- <p class="ratings-basedupon">(<%= Spree.t('based_upon_review_count', :count => reviews_count) %>)</p>
+ <p class="ratings-basedupon">(<%= I18n.t('spree.based_upon_review_count', count: reviews_count) %>)</p>
<div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<meta itemprop="ratingValue" content="<%= stars %>" />
<meta itemprop="reviewCount" content="<%= reviews_count %>" />
</div>
</div>