- @show_page = 1 - @show_page_link_ru = "/ru/яхта/#{@yacht.id}-#{@yacht.title_ru.gsub(/[[:punct:]]/,'').gsub(/\s+/,'-').mb_chars.downcase}" - @show_page_link_en = "/yacht/#{@yacht.id}-#{@yacht.title_en.parameterize}" - @show_page_link_es = "/es/yate/#{@yacht.id}-#{@yacht.title_es.parameterize}" - @show_page_link_fr = "/fr/yacht/#{@yacht.id}-#{@yacht.title_fr.parameterize}" - @url = request.original_url - @@url = request.original_url - @show_page_yacht = 1 - @locale = I18n.locale.to_s - @li = '' - @hreflang_en = "https://#{request.host}"+@show_page_link_en - @hreflang_es = "https://#{request.host}"+@show_page_link_es - @hreflang_ru = "https://#{request.host}"+@show_page_link_ru - @hreflang_fr = "https://#{request.host}"+@show_page_link_fr - @contact_type = "yacht" - @keyswords = "" -if I18n.locale.to_s == 'en' - @title_locale = @yacht.title_en - if @yacht.keys_en != nil - @keyswords = ', ' + @yacht.keys_en -if I18n.locale.to_s == 'es' - @title_locale = @yacht.title_es - if @yacht.keys_es != nil - @keyswords = ', ' + @yacht.keys_es -if I18n.locale.to_s == 'ru' - @title_locale = @yacht.title_ru - if @yacht.keys_ru != nil - @keyswords = ', ' + @yacht.keys_ru -if I18n.locale.to_s == 'fr' - @title_locale = @yacht.title_fr - if @yacht.keys_fr != nil - @keyswords = ', ' + @yacht.keys_fr - @pag_title = @title_locale -if I18n.locale.to_s == 'en' - if @yacht_description_en != '' - @pag_description = @yacht_description_en - else - @pag_description = @pag_title + '. ' + t('description_show_yacht') + '.' -if I18n.locale.to_s == 'es' - if @yacht_description_es != '' - @pag_description = @yacht_description_es - else - @pag_description = @pag_title + '. ' + t('description_show_yacht') + '.' -if I18n.locale.to_s == 'fr' - if @yacht_description_fr != '' - @pag_description = @yacht_description_fr - else - @pag_description = @pag_title + '. ' + t('description_show_yacht') + '.' -if I18n.locale.to_s == 'ru' - if @yacht_description_ru != '' - @pag_description = @yacht_description_ru - else - @pag_description = @pag_title + '. ' + t('description_show_yacht') + '.' - @pag_keywords = @pag_title.strip.split(/\s+/).to_sentence(words_connector: ', ', last_word_connector: ', ') + ', ' + t('keywords_show_yacht') + '. ' - @og_title = @pag_title - @og_type = t('yacht') - @og_url = request.original_url - @og_description = @pag_description #fb-root %script{:async => "", :crossorigin => "anonymous", :defer => "defer", :nonce => "xhM8Ve9y", :src => "https://connect.facebook.net/es_ES/sdk.js#xfbml=1&version=v8.0&appId=954250338385847&autoLogAppEvents=1"} #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 = "Насладитесь отдыхом по максимуму" - @yacht_hidden_tmp = false .show-margin - if @yacht_hidden_tmp == true and @show == nil .container %h1.center.show-title = @pag_title .center = image_tag("web/candado.png", size: '50x50', :alt => @pag_title + '. ' + t('temporarily_unavailable')) - else .container .row - if @yacht.ImagesYachts.exists? - @cont_img = 0 .img-principal-page.fix-bug-with-slider .slider-for - @yacht.ImagesYachts.order("position").each do |img| %div.zoom-gallery1.zoom-gallery-conf = link_to(image_tag(img.image.slide, class: 'img-thumbnail', :alt => @pag_title), img.image.url, target: '_blank', :title => @pag_title, "data-source" => "", :alt => @pag_title) - @cont_img = @cont_img+1 - if @cont_img == 1 - @og_image = img.image.thumbnlg.to_s - if @cont_img > 1 .margin-sub-img.fix-bug-with-slider .slider-nav - @yacht.ImagesYachts.order("position").each do |img| %div.margin-on-sub-img .hidden-xs = image_tag(img.image.thumblittle, class: 'img-thumbnail fix-pad-img', :alt => @pag_title) .hidden-lg.hidden-md.hidden-sm = image_tag(img.image.thumbxs, class: 'img-thumbnail fix-pad-img', :alt => @pag_title) - else .center = image_tag("web/no-foto-big.jpg", class: 'img-thumbnail', size: '820x410', :alt => "no foto") - @og_image = "/assets/web/no-foto-big.jpg" .row .col-lg-8.col-md-12.col-sm-12.col-xs-12 %h1.center.show-title = @pag_title %h2.h2-show %a{:href => w_yachts_path, :title => t('yacht')} = t('yacht') .ref-show = "Ref: TGS-Y" + @yacht.id.to_s -if current_admintg -if current_admintg.level >= 1 = '(' %a{href: w_yacht_path + '.pdf', style: 'text-decoration: none;', :target => "_blank"} %span.link-pdf.hidden-xs = t('pdf') = ')' .fb-btn-left .fb-share-button{"data-href" => @og_url, "data-layout" => "button", "data-size" => "small"} %a.fb-xfbml-parse-ignore{:href => "https://www.facebook.com/sharer/sharer.php?u="+@og_url+"%2F&src=sdkpreparse", :target => "_blank"} = t('share') %a{:href => "https://api.whatsapp.com/send?text=" + @title_locale + "%20" + @og_url, :target => "_blank"} -if I18n.locale.to_s == 'en' = image_tag("web/icons/whatsapp-share-en.png", size: '90x33', :alt => "whatsapp share") -if I18n.locale.to_s == 'es' = image_tag("web/icons/whatsapp-share-es.png", size: '90x33', :alt => "whatsapp Compartir") -if I18n.locale.to_s == 'ru' = image_tag("web/icons/whatsapp-share-ru.png", size: '90x33', :alt => "whatsapp Поделиться") -if I18n.locale.to_s == 'fr' = image_tag("web/icons/whatsapp-share-fr.png", size: '90x33', :alt => "whatsapp Partager") -if I18n.locale.to_s == 'en' - if @yacht.text_en != '' .row %hr .features-titles = t('description') .description-text = raw(@yacht.text_en) -if I18n.locale.to_s == 'es' - if @yacht.text_es != '' .row %hr .features-titles = t('description') .description-text = raw(@yacht.text_es) -if I18n.locale.to_s == 'ru' - if @yacht.text_ru != '' .row %hr .features-titles = t('description') .description-text = raw(@yacht.text_ru) -if I18n.locale.to_s == 'fr' - if @yacht.text_fr != '' .row %hr .features-titles = t('description') .description-text = raw(@yacht.text_fr) %br .show-right-part .col-lg-4.col-md-12.col-sm-12.col-xs-12 .online-request .fas.fa-envelope = t('online_booking').mb_chars.upcase .online-request-form = render 'contacts/formrequest_external' %br .online-request = t('contact').mb_chars.upcase .online-request-form %p %b = t('attention_phones').mb_chars + ":" %ul.list-phones %li %em = t('spain').mb_chars.capitalize + ":" %b +34 951 204 417 %li %em = t('france').mb_chars.capitalize + ":" %b +33 (0) 975 17 08 36 %li %em = t('switzerland').mb_chars.capitalize + ":" %b +41 44 508 33 58 %b = t('email').mb_chars + ":" %a{:href => "mailto:info@thegrandselection.com"} info@thegrandselection.com .col-lg-12.col-md-12.col-sm-12.col-xs-12 = render 'layouts/partials/index/footer'