- @@url = request.original_url - @pag_title = t('title_index_restaurants') - @pag_description = t('description_index_restaurants') - @pag_keywords = t('keywords_index_restaurants') - @principal_bg = true - @locale = I18n.locale.to_s - @li = '· ' - @og_title = t('title_index_restaurants') - @og_type = t('reservation') - @og_url = request.original_url - @og_image = "/assets/web_hotelsultanclub/the-grand-selection-logo-og.jpg" - @og_description = t('description_index_restaurants') - @hreflang_en = "https://#{request.host}"+hotelsultanclub_w_restaurants_en_path - @hreflang_es = "https://#{request.host}"+hotelsultanclub_w_restaurants_es_path - @hreflang_ru = "https://#{request.host}"+(CGI.unescape(hotelsultanclub_w_restaurants_ru_path)) #w_restaurants_jquery_start .bg-searcher .container .row .col-lg-12 -if I18n.locale.to_s == 'en' .h2-welcome-text = "Restaurants Marbella" -if I18n.locale.to_s == 'es' .h2-welcome-text = "Restaurantes Marbella" -if I18n.locale.to_s == 'ru' .h2-welcome-text-ru = "Рестораны Марбелья" .container .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 - @num_restaurant_foto = 0 - @restaurants.each do |w_restaurants| - @location_a = '' - @region_a = '' - @province_a = '' - @country_a = '' - @last_location_exist = '' -if @locale == 'en' - @title_locale = w_restaurants.title_en -if @locale == 'es' - @title_locale = w_restaurants.title_es -if @locale == 'ru' - @title_locale = w_restaurants.title_ru -if @locale == 'fr' - @title_locale = w_restaurants.title_fr - @countries.each do |countries| - if w_restaurants.country_id == countries.id - @country_u = countries -if @locale == 'en' - @country_a = countries.en - @last_location_exist = countries.en -if @locale == 'es' - @country_a = countries.es - @last_location_exist = countries.es -if @locale == 'ru' - @country_a = countries.ru - @last_location_exist = countries.ru -if @locale == 'fr' - @country_a = countries.fr - @last_location_exist = countries.fr - @provinces.each do |provinces| - if w_restaurants.province_id == provinces.id - @province_u = provinces -if @locale == 'en' - @province_a = ', ' + provinces.en - @last_location_exist = provinces.en -if @locale == 'es' - @province_a = ', ' + provinces.es - @last_location_exist = provinces.es -if @locale == 'ru' - @province_a = ', ' + provinces.ru - @last_location_exist = provinces.ru -if @locale == 'fr' - @province_a = ', ' + provinces.fr - @last_location_exist = provinces.fr - @regions.each do |regions| - if w_restaurants.region_id == regions.id - @region_u = regions -if @locale == 'en' - @region_a = ', ' + regions.en - @last_location_exist = regions.en -if @locale == 'es' - @region_a = ', ' + regions.es - @last_location_exist = regions.es -if @locale == 'ru' - @region_a = ', ' + regions.ru - @last_location_exist = regions.ru -if @locale == 'fr' - @region_a = ', ' + regions.fr - @last_location_exist = regions.fr - @locations.each do |locations| - if w_restaurants.location_id == locations.id - @location_u = locations -if @locale == 'en' - @location_a = ' ' + locations.en - @last_location_exist = locations.en -if @locale == 'es' - @location_a = ' ' + locations.es - @last_location_exist = locations.es -if @locale == 'ru' - @location_a = ' ' + locations.ru - @last_location_exist = locations.ru -if @locale == 'fr' - @location_a = ' ' + locations.fr - @last_location_exist = locations.fr - @direction = @country_a + @province_a + @region_a + @location_a .col-mod-property.mobile-fix .col-lg-12.col-md-12.col-sm-12.col-xs-12.restaurant-margin %a{href: hotelsultanclub_w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #000000;'} %h2.titulo-restaurant.center = @title_locale .gallery_product.col-md-12.col-xs-12 - if w_restaurants.ImagesRestaurant.exists? - @num_restaurant_foto = @num_restaurant_foto + 1 #p.property.carousel-fade.carousel.shdw-img.slide{"data-ride" => "carousel"} //Wrapper for slides .carousel-inner.carousel-zoom - @cont_img = 0 - w_restaurants.ImagesRestaurant.order("position").each do |img| - if @cont_img == 0 - @cont_img = @cont_img +1 .item.active %a{href: hotelsultanclub_w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.slide.url, class: 'img-max', :alt => @title_locale) - else .item %a{href: hotelsultanclub_w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.slide.url, :alt => @title_locale, class: 'img-max'} //Controls %a.left.align-vertical-center.carousel-control{"data-slide" => "prev", :href => "#p"+@num_restaurant_foto.to_s, :role => "button"} %span.fas.fa-chevron-left %a.right.align-vertical-center.carousel-control{"data-slide" => "next", :href => "#p"+@num_restaurant_foto.to_s, :role => "button"} %span.fas.fa-chevron-right - else .item.active %a{href: hotelsultanclub_w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #000000;'} = image_tag("web_hotelsultanclub/no-foto-big.jpg", class: 'no-photo img-max', :alt => @title_locale) .col-md-12.col-sm-12.col-xs-12 .titulo-desc-restaurant.restaurants-desc-mobil-fix = t('restaurant') + ". " = @last_location_exist + '.' .desc-restaurants.restaurants-desc-mobil-fix %p -if @locale == 'en' -if !(w_restaurants.text_en.nil? or w_restaurants.text_en == '') = sanitize(strip_tags(w_restaurants.text_en.truncate_words(120))) %a{href: hotelsultanclub_w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #0645AD;'} = "[ " + t('more') + " ]" -if @locale == 'es' -if !(w_restaurants.text_es.nil? or w_restaurants.text_es == '') = sanitize(strip_tags(w_restaurants.text_es.truncate_words(120))) %a{href: hotelsultanclub_w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #0645AD;'} = "[ " + t('more') + " ]" -if @locale == 'fr' -if !(w_restaurants.text_fr.nil? or w_restaurants.text_fr == '') = sanitize(strip_tags(w_restaurants.text_fr.truncate_words(120))) %a{href: hotelsultanclub_w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #0645AD;'} = "[ " + t('more') + " ]" -if @locale == 'ru' -if !(w_restaurants.text_ru.nil? or w_restaurants.text_ru == '') = sanitize(strip_tags(w_restaurants.text_ru.truncate_words(120))) %a{href: hotelsultanclub_w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #0645AD;'} = "[ " + t('more') + " ]" .col-lg-12.col-md-12.col-sm-12.col-xs-12 .div-pagination = will_paginate @restaurants, inner_window: 2, outter_window: 1, renderer: BootstrapPagination::Rails .page_info = page_entries_info @restaurants, :model => Restaurant = render 'layouts/hotelsultanclub/partials/index/footer'