- if product.has_reviews? #reviews.reviews .reviews__header.grid.grid--middle .grid__cell.grid__cell--50-at-medium .grid.grid--middle.grid--auto .grid__cell %h2.reviews__heading= t('workarea.storefront.reviews.reviews', count: product.reviews.length) .grid__cell %p.reviews__write-action= link_to t('workarea.storefront.reviews.write_a_review'), new_product_review_path(product), class: 'button button--wide', data: { dialog_button: '' } - if display_purchase_requirement_message %span.reviews__write-purchase-requirement= t('workarea.storefront.reviews.purchase_requirement') -# Review sort select injected here by product_reviews_sort_menus.js %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')