<div id="cigallery_review_content-{{ gallery_review.review_id }}" data-galleryids="{{ gallery_review.galleryids|join(",") }}">
  {% if gallery_review.rating %}
  <ul class="list-unstyled average rating">
    <li>
      <!-- /*17-09-2019 half start starts*/ -->
      {#
      {% for i in 1..ratingstars %}
        {% if gallery_review.rating < i %}
          <span class="fa fa-stack"><i class="fa fa-star-o fa-stack-2x"></i></span>
        {% else %}
          <span class="fa fa-stack"><i class="fa fa-star fa-stack-2x"></i><i class="fa fa-star-o fa-stack-2x"></i></span>
        {% endif %}
      {% endfor %}
      #}
      {{ gallery_review.html_rating }}
      <!-- /*17-09-2019 half start starts*/ -->
      {% if reviewratingcount %}<span class="ciratingcount"> ({{ gallery_review.show_rating }}) </span>{% endif %}
    </li>
  </ul>
  {% endif %}
  {% if not emptygallery_review.reviewtitle %}
    <h4>{{ gallery_review.reviewtitle }}</h4>
  {% endif %}
  <h3>{% if not emptygallery_review.author %}{{ text_by }} {{ gallery_review.author }}{% if not emptygallery_review.author_flag %}<span> - <img src="{{ gallery_review.author_flag }}" /></span>{% endif %}{% endif %} {{ text_on }} {{ gallery_review.date_added }}</h3>
  <p>{{ gallery_review.text }}</p>
</div>
<div>
  {% if gallery_review.attach_images %}
    <ul class="list list-inline cireviegallerywattach_images" id="cireviegallerywattach_images-{{ gallery_review.review_id }}">
      {% for attach_image in gallery_review.attach_images %}
        <li id="cireviegallerywattach_image-{{ attach_image.cireview_image_id }}" class="cigallery cireviegallerywattach_image" data-action="s" data-galleryid="{{ attach_image.galleryid }}"><img src="{{ attach_image.thumb }}" alt="{{ attach_image.alt }}" title="{{ attach_image.title }}" /></li>
      {% endfor %}
    </ul>
  {% endif %}
</div>