- @@url = request.original_url - @@contact_type = "yacht" - @pag_title = t('title_index_yachts') - @pag_description = t('description_index_yachts') - @pag_keywords = t('keywords_index_yachts') - @principal_bg = true - @locale = I18n.locale.to_s - @li = '· ' - @og_title = t('title_index_yachts') - @og_type = t('reservation') - @og_url = request.original_url - @og_image = "/assets/web/the-grand-selection-logo-og.jpg" - @og_description = t('description_index_yachts') - @hreflang_en = "https://#{request.host}"+w_yachts_en_path - @hreflang_es = "https://#{request.host}"+w_yachts_es_path - @hreflang_ru = "https://#{request.host}"+(URI.decode(w_yachts_ru_path.force_encoding('ASCII-8BIT').force_encoding('UTF-8'))) - @hreflang_fr = "https://#{request.host}"+w_yachts_fr_path #w_yachts_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 = "Enjoy your vacation to the fullest" -if I18n.locale.to_s == 'fr' .h2-welcome-text = "Profitez de vos vacances au maximum" -if I18n.locale.to_s == 'es' .h2-welcome-text = "Disfrute sus vacaciones al máximo" -if I18n.locale.to_s == 'ru' .h2-welcome-text-ru = "Насладитесь отдыхом по максимуму" #w_yachts_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"} - @num_property_foto = 0 - @yachts.each do |w_yachts| - @location_a = '' - @region_a = '' - @province_a = '' - @country_a = '' -if @locale == 'en' - @title_locale = w_yachts.title_en -if @locale == 'es' - @title_locale = w_yachts.title_es -if @locale == 'ru' - @title_locale = w_yachts.title_ru -if @locale == 'fr' - @title_locale = w_yachts.title_fr .col-mod-property.mobile-fix.load-w .col-lg-4.col-md-4.col-sm-6.col-xs-12 .gallery_product.col-md-12.col-xs-12 - if w_yachts.ImagesYachts.exists? - @num_property_foto = @num_property_foto + 1 #p.property.carousel-fade.carousel.slide{"data-ride" => "carousel"} //Wrapper for slides .carousel-inner.carousel-zoom - @cont_img = 0 - w_yachts.ImagesYachts.order("position").each do |img| - if @cont_img == 0 - @cont_img = @cont_img +1 .item.active %a{href: w_yacht_path(w_yachts), style: 'text-decoration: none; color: #000000;'} = image_tag(img.image.thumbnlg, class: 'img-max', :alt => @title_locale) - else .item %a{href: w_yacht_path(w_yachts), style: 'text-decoration: none; color: #000000;'} %img{"data-load-src" => img.image.thumbnlg, :alt => @title_locale, class: 'img-max'} //Controls %a.left.align-vertical-center.carousel-control{"data-slide" => "prev", :href => "#p"+@num_property_foto.to_s, :role => "button"} %span.fas.fa-chevron-left %a.right.align-vertical-center.carousel-control{"data-slide" => "next", :href => "#p"+@num_property_foto.to_s, :role => "button"} %span.fas.fa-chevron-right - else .item.active %a{href: w_yacht_path(w_yachts), 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.titulo-height.xs-pading-text %a{href: w_yacht_path(w_yachts), style: 'text-decoration: none; color: #000000;'} %h2.titulo = @title_locale .titulo-desc = t('yacht') + ". " - if w_yachts.price_day = t('price_day') + " " + w_yachts.price_day.to_s + "€ " .col-lg-12.col-md-12.col-sm-12.col-xs-12.load-w .div-pagination = will_paginate @yachts, inner_window: 2, outter_window: 1, renderer: BootstrapPagination::Rails .page_info = page_entries_info @yachts = render 'layouts/partials/index/footer'