{%- if rating >= 1 -%}
  <div class="t4s-rating-wapper">

      {%- case rating -%}
        {%- when 1 -%}
          <div class="rating rating_1">
            <svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg>
          </div>
        {%- when 1.5 -%} 
          <div class="rating rating_1-5">
            <svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg class="star_half" viewBox="0 0 32 32"><use xlink:href="#t4s_star_half"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg>
            </div>
        {%- when 2 -%}
          <div class="rating rating_2">
            <svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg>
            </div>
        {%- when 2.5 -%}
          <div class="rating rating_2-5">
            <svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg class="star_half" viewBox="0 0 32 32"><use xlink:href="#t4s_star_half"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg>
            </div>
        {%- when 3 -%}
          <div class="rating rating_3">
            <svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg>
            </div>
        {%- when 3.5 -%}
          <div class="rating rating_3-5">
            <svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg class="star_half" viewBox="0 0 32 32"><use xlink:href="#t4s_star_half"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg>
            </div>
        {%- when 4 -%}
          <div class="rating rating_4">
            <svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg  class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg>
            </div>
        {%- when 4.5 -%}
          <div class="rating rating_4-5">
            <svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg class="last-star" viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg class="star_half" viewBox="0 0 32 32"><use xlink:href="#t4s_star_half"></use></svg></div>
        {%- else -%}
          <div class="rating rating_5">
            <svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg><svg viewBox="0 0 32 32"><use xlink:href="#t4s_star"></use></svg></div>
      {%- endcase -%}
  </div>
{%- endif -%}