<div id="reviews">
  <h6 class="product-section-title"><%= t(:reviews) %></h6>
  <% if @product.reviews.approved.count == 0 %>
  <p class="reviews-none"><%=t('no_reviews_available')%></p>
  <% else %>
    <%= render :partial => 'spree/shared/rating', :locals => {:product => @product, :review => 0} %>
    <% for review in (Spree::Reviews::Config[:track_locale] ? @product.reviews.localized(I18n.locale) : @product.reviews).approval_filter %>
      <%= render :partial => 'spree/shared/review', :locals => {:review => review} %>
    <% end %>
  <% end %>
  <% if !Spree::Reviews::Config[:require_login] || spree_current_user || Spree::Reviews::Config[:always_show_create] %>
    <%= link_to t('write_your_own_review'), new_product_review_path(@product), :class => "button",
                :rel => "nofollow,noindex" %>
  <% end %>
</div>

<div id="reviews">
  <h6 class="product-section-title"><%= t(:reviews) %></h6>
  <% if Spree::Reviews::Config[:include_unapproved_reviews] == false and @product.reviews.approved.count == 0 %>
    <p class="reviews-none"><%=t('no_reviews_available')%></p>
  <% else %>
    <%= render :partial => 'spree/shared/rating', :locals => {:product => @product, :review => 0} %>
    <% for review in (Spree::Reviews::Config[:track_locale] ? @product.reviews.localized(I18n.locale) : @product.reviews).approval_filter %>
      <%= render :partial => 'spree/shared/review', :locals => {:review => review} %>
    <% end %>
  <% end %>
  <% if !Spree::Reviews::Config[:require_login] || spree_current_user || Spree::Reviews::Config[:always_show_create] %>
    <%= link_to t('write_your_own_review'), new_product_review_path(@product), :class => "button",
                :rel => "nofollow,noindex" %>
  <% end %>
</div>

Fix displaying of unapproved reviews when configured to display them.
Fix displaying of unapproved reviews when configured to display them.
