- @@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/the-grand-selection-logo-og.jpg" - @og_description = t('description_index_restaurants') - @hreflang_en = "https://#{request.host}"+w_restaurants_en_path - @hreflang_es = "https://#{request.host}"+w_restaurants_es_path - @hreflang_ru = "https://#{request.host}"+(CGI.unescape(w_restaurants_ru_path)) - @hreflang_fr = "https://#{request.host}"+w_restaurants_fr_path #w_restaurants_jquery_start .bg-searcher .container .row .col-lg-12.col-md-12.col-sm-12.col-xs-12.bg-searcher-sin-transparency -if I18n.locale.to_s == 'en' .h2-welcome-text = "Haute cuisine restaurants in Marbella" -if I18n.locale.to_s == 'es' .h2-welcome-text = "Restaurantes de alta cocina en Marbella" -if I18n.locale.to_s == 'ru' .h2-welcome-text-ru = "Рестораны высокой кухни в Марбельи" -if I18n.locale.to_s == 'fr' .h2-welcome-text = "Restaurants Haute Cuisine à Marbella" #w_restaurants_jquery_start_2 .container-fluid .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 %br .center.load-w-load %p = t('please_wait') %svg.svg{:height => "200", :width => "200"} %circle{:cx => "100", :cy => "100", :r => "50"} .col-lg-12.col-md-12.col-sm-12.col-xs-12 %h1.gallery-title = t('restaurants_tgs_h1') -if I18n.locale.to_s == 'en' .col-md-12.col-sm-12.mobile-fix %p Best Marbella restaurants -if I18n.locale.to_s == 'es' .col-md-12.col-sm-12.mobile-fix %p Los mejores restaurantes de Marbella -if I18n.locale.to_s == 'ru' .col-md-12.col-sm-12.mobile-fix %p Лучшие рестораны в Марбельи -if I18n.locale.to_s == 'fr' .col-md-12.col-sm-12.mobile-fix %p Meilleurs restaurants à Marbella %br - @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.load-w .col-lg-4.col-md-4.col-sm-6.col-xs-12.restaurant-margin .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.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: w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.thumbnlg.url, class: 'img-max', :alt => @title_locale) - else .item %a{href: w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.thumbnlg.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: w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #000000;'} = image_tag("web/no-foto-big.jpg", class: 'no-photo img-max', :alt => @title_locale) .col-md-12.col-sm-12.col-xs-12 %a{href: w_restaurant_path(w_restaurants), style: 'text-decoration: none; color: #000000;'} %h2.titulo.center = @title_locale .titulo-desc-restaurant.restaurants-desc-mobil-fix.center = t('restaurant') + " - " = @last_location_exist + '.' .col-lg-12.col-md-12.col-sm-12.col-xs-12.load-w .div-pagination = will_paginate @restaurants, inner_window: 2, outter_window: 1, renderer: BootstrapPagination::Rails .page_info = page_entries_info @restaurants, :model => Restaurant = render 'layouts/partials/index/footer'