Sha256: 651f12c8514d639860e7fcc62c6d53013faa77c5f1f836e1ddc66bb1895d67b9

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

- if product.has_reviews?
  #reviews.reviews
    %h2.reviews__count= t('workarea.storefront.reviews.reviews', count: product.reviews.length)

    .reviews__header
      .reviews__write-action= link_to t('workarea.storefront.reviews.write_a_review'), new_product_review_path(product), class: 'button', data: { dialog_button: '' }
      - if display_purchase_requirement_message
        %span.reviews__write-purchase-requirement= t('workarea.storefront.reviews.purchase_requirement')

    %ol.reviews__review-group
      - product.reviews.each do |review|
        %li.reviews__review{ data: { product_review_section_entry: { rating: review.rating.to_f, createdAt: review.created_at.to_i }.to_json } }
          = rating_stars(review.rating)

          %h3.reviews__review-title= review.title
          %p.reviews__review-body= review.body
          .reviews__review-meta
            %p.reviews__review-author
              %span= review.user_info
            - if review.verified?
              %p.reviews__review-verified= t('workarea.storefront.reviews.verified_purchaser')
            %p.reviews__review-date= local_time(review.created_at, format: :long, itemprop: 'datePublished')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-nvy_theme-1.2.1 app/views/workarea/storefront/products/_reviews.html.haml
workarea-nvy_theme-1.2.0 app/views/workarea/storefront/products/_reviews.html.haml