modules/XC/CrispWhiteSkin/templates/web/customer/modules/XC/Reviews/average_rating/text.twig line 1

Open in your IDE?
  1. {##
  2.  # Rating value in text
  3.  #}
  4.  <div class="text">
  5.   {% if this.getVotesCount() > 0 %}
  6.     <div>{{ t('Score: X. Votes: Y', {'score': this.getAverageRating(), 'votes': this.getVotesCount()}) }}</div>
  7.     {% if this.getReviewsCount() > 0 %}
  8.       <div>{{ t('Reviews: X', {'count': this.getReviewsCount()}) }}</div>
  9.     {% else %}
  10.       <div>{{ t('No reviews.') }}</div>
  11.     {% endif %}
  12.   {% else %}
  13.     <div>{{ t('Not rated yet') }}</div>
  14.   {% endif %}
  15. </div>