Sha256: cd918dce5915eb9f6d11ffeb132dc95d8a5144e07bee18157450fbc107502780

Contents?: true

Size: 636 Bytes

Versions: 9

Compression:

Stored size: 636 Bytes

Contents

<% stars = product.stars %>
<% reviews_count = product.reviews_count %>
<div class="ratings">
  <p><%= I18n.t('spree.average_customer_rating') %>: </p>
  <p class="ratings-stars">
    <span title="<%= txt_stars(stars) %>">
      <%= render 'spree/reviews/stars', stars: stars %>
    </span>
  </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>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
solidus_reviews-1.7.0 app/views/spree/shared/_rating.html.erb
solidus_reviews-1.6.0 app/views/spree/shared/_rating.html.erb
solidus_reviews-1.5.0 app/views/spree/shared/_rating.html.erb
solidus_reviews-1.4.1 app/views/spree/shared/_rating.html.erb
solidus_reviews-1.4.0 app/views/spree/shared/_rating.html.erb
solidus_reviews-1.3.0 app/views/spree/shared/_rating.html.erb
solidus_reviews-1.2.0 app/views/spree/shared/_rating.html.erb
solidus_reviews-1.1.1 app/views/spree/shared/_rating.html.erb
solidus_reviews-1.1.0 app/views/spree/shared/_rating.html.erb