Sha256: ac43cbc362939724eb924735405951b42cc2d78569c7db3556cdb712f66ba182

Contents?: true

Size: 1.29 KB

Versions: 5

Compression:

Stored size: 1.29 KB

Contents

- if product.has_reviews?
  .reviews-aggregate
    = link_to "#{product_path(product, product.browse_link_options)}#reviews", data: { scroll_to_button: '' }, class: 'reviews-aggregate__rating-link' do
      = rating_stars(product.average_rating, aggregate: true)

    = link_to "#{product_path(product, product.browse_link_options)}#reviews", data: { scroll_to_button: '' } do
      %span.reviews-aggregate__count
        %span.reviews-aggregate__read= t('workarea.storefront.reviews.read_reviews')
        = surround '(', ')' do
          %span= product.total_reviews

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

- else
  .reviews-aggregate
    %p.reviews-aggregate__count= t('workarea.storefront.reviews.reviews', count: 0)
    = link_to t('workarea.storefront.reviews.write_a_review'), new_product_review_path(product), class: 'reviews-aggregate__write-action', data: { dialog_button: '' }
    - if display_purchase_requirement_message
      %p.write-review__purchase-requirement
        = t('workarea.storefront.reviews.purchase_requirement')

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
workarea-reviews-3.1.2 app/views/workarea/storefront/products/_reviews_aggregate.html.haml
workarea-nvy_theme-1.2.1 app/views/workarea/storefront/products/_reviews_aggregate.html.haml
workarea-reviews-3.1.1 app/views/workarea/storefront/products/_reviews_aggregate.html.haml
workarea-nvy_theme-1.2.0 app/views/workarea/storefront/products/_reviews_aggregate.html.haml
workarea-reviews-3.1.0 app/views/workarea/storefront/products/_reviews_aggregate.html.haml