templates/geo/parts/hotels.html.twig line 1

Open in your IDE?
  1. <div class="tour-list__container list__container">
  2.     <div class="tour-list__view swiper-container tour-slider">
  3.         <div class="tour-list__list swiper-wrapper">
  4.             {% for hotel in hotels %}
  5.                 <a class="tour-list__item swiper-slide" href="/hotel/{{ hotel.id }}-{{ hotel.hrefName }}" title="{{ hotel.name }}">
  6.                     <span class="tour-list__item-photo" style="background-image: url('{{ hotel.image }}');">
  7.                         {% if hotel.rating != 0 %}
  8.                             <span class="tour-list__rating-list" >
  9.                                 <span class="rating-list__container">
  10.                                     <span class="rating-list__bar-wrapper" data-rat-value="{{ hotel.rating|round(2, 'common')|number_format(1, '.') }}">
  11.                                         <span class="rating-list__progressbar">
  12.                                             <span class="rating-list__bar" data-value="{{ hotel.rating }}"></span>
  13.                                         </span>
  14.                                         {{ hotel.rating|round(2, 'common')|number_format(1, '.') }}
  15.                                     </span>
  16.                                 </span>
  17.                             </span>
  18.                         {% endif %}
  19.                     </span>
  20.                     <span class="tour-list__item-info">
  21.                         <span class="tour-list__item-hotel-name">
  22.                             <span class="tour-list__hotel-stars">
  23.                                 {% if hotel.stars == 'five' %}
  24.                                     5
  25.                                 {% elseif hotel.stars == 'four' %}
  26.                                     4
  27.                                 {% elseif hotel.stars == 'three' %}
  28.                                     3
  29.                                 {% elseif hotel.stars == 'two' %}
  30.                                     2
  31.                                 {% elseif hotel.stars == 'one' %}
  32.                                     1
  33.                                 {% endif %}
  34.                                 <i class="icon icon-star"></i>
  35.                             </span>
  36.                             <span class="tour-list__hotel-name" title="{{ hotel.name }}">
  37.                                 <span>{{ hotel.name }}</span>
  38.                             </span>
  39.                         </span>
  40.                         <span class="tour-list__item-location" title="{{ hotel.countryName }}, {{ hotel.cityName }}"><i class="icon icon-16px i16-location-4"></i>{{ hotel.countryName }}, {{ hotel.cityName }}</span>
  41.                     </span>
  42.                 </a>
  43.             {% endfor %}
  44.         </div>
  45.     </div>
  46.     <div class="swiper-button swiper-button-prev"></div>
  47.     <div class="swiper-button swiper-button-next"></div>
  48.     <div class="spoiler__container">
  49.         <div class="spoiler__button not-toggable show-more-tours-button">
  50.             <span>
  51.                 <i class="icon icon-darr-blue"></i>
  52.                 {{ 'Больше'|trans }}
  53.             </span>
  54.         </div>
  55.     </div>
  56. </div>