Sha256: 768636461c4d9fa31ca61cb3734de0a44d3feab8b48ff2ca5fd64891aa770bab

Contents?: true

Size: 1.78 KB

Versions: 5

Compression:

Stored size: 1.78 KB

Contents

<div class="review" itemprop="reviews" itemscope itemtype="http://schema.org/Review">
  <span class="reviews-rating" title="<%= txt_stars(review.rating) %>">
    <%= render "spree/reviews/stars", stars: review.rating %>
  </span>
  <% if review.approved? || Spree::Reviews::Config[:display_unapproved_reviews] %>
    <span itemprop="name"><%= review.title %></span>
    <br/>
    <span class="attribution"><%= I18n.t("spree.submitted_on") %> <strong><%= l review.created_at.to_date %></strong></span>
    <meta itemprop="datePublished" content="<%= review.created_at.to_date.to_s %>" />

    <meta itemprop="reviewRating" content="<%= review.rating %>" />
    <% if review.show_identifier %>
      <% if Spree::Reviews::Config[:show_email] && review.user %>
        <span itemprop="author"><%= review.user.email %></span>
      <% else %>
        <span itemprop="author"><%= review.name %></span>
      <% end %>
    <% else %>
        <span itemprop="author"><%= I18n.t("spree.anonymous") %></span>
    <% end %>
    <% if Spree::Reviews::Config[:show_verified_purchaser] && review.verified_purchaser? %>
      <div><%= I18n.t("spree.verified_purchaser") %></div>
    <% end %>
    <div itemprop="reviewBody">
      <%= simple_format(review.review) %>
    </div>
    <% if Spree::Reviews::Config[:allow_image_upload] %>
      <% review.images.each do |image| %>
        <div itemprop="image">
          <%= link_to image_tag(image.url(:product)), image.url(:original) %>
        </div>
      <% end %>
    <% end %>
    <% if Spree::Reviews::Config[:feedback_rating] && (!Spree::Reviews::Config[:require_login] || spree_current_user) %>
      <div class="feedback_review" id="feedback_review_<%= review.id %>">
        <%= render "spree/feedback_reviews/form", review: review %>
      </div>
    <% end %>
  <% end %>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
solidus_reviews-1.7.0 app/views/spree/shared/_review.html.erb
solidus_reviews-1.6.0 app/views/spree/shared/_review.html.erb
solidus_reviews-1.5.0 app/views/spree/shared/_review.html.erb
solidus_reviews-1.4.1 app/views/spree/shared/_review.html.erb
solidus_reviews-1.4.0 app/views/spree/shared/_review.html.erb