Sha256: 0dc8efb662af65cb9dc25b2e792b6404e3d0ccbe48b7de75b4a7db14bcda9ba5

Contents?: true

Size: 738 Bytes

Versions: 6

Compression:

Stored size: 738 Bytes

Contents

%p.rating{ title: "#{rating.round(2)} #{t('workarea.storefront.reviews.out_of')} #{t('workarea.storefront.reviews.stars', count: 5)}", itemprop: itemprop, itemscope: true, itemtype: itemtype }
  - full_star_count.times do
    = inline_svg 'workarea/storefront/icons/star.svg', class: 'rating__star'
  - if half_star_size > 0
    = inline_svg 'workarea/storefront/icons/half_star.svg', class: 'rating__star'
  - empty_star_count.times do
    = inline_svg 'workarea/storefront/icons/empty_star.svg', class: 'rating__star'
  %span.rating__text.visually-hidden
    %meta{ itemprop: 'ratingValue', content: rating.round(2) }
    #{rating.round(2)} #{t('workarea.storefront.reviews.out_of')} #{t('workarea.storefront.reviews.stars', count: 5)}

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
workarea-reviews-3.0.10 app/views/workarea/storefront/products/_rating.html.haml
workarea-reviews-3.0.9 app/views/workarea/storefront/products/_rating.html.haml
workarea-nvy_theme-1.1.4 app/views/workarea/storefront/products/_rating.html.haml
workarea-nvy_theme-1.1.3 app/views/workarea/storefront/products/_rating.html.haml
workarea-nvy_theme-1.1.2 app/views/workarea/storefront/products/_rating.html.haml
workarea-reviews-3.0.8 app/views/workarea/storefront/products/_rating.html.haml