- @@url = request.original_url - @pag_title = t('title_show_car') + @brandname.brand + ' ' + @modelname.model + t('title_site') -if I18n.locale.to_s == 'en' -if @car_description_en == ' ' - @pag_description = @car_description_en -else - @pag_description = t('description_show_cars') + ' ' + @brandname.brand + ' ' + @modelname.model -if I18n.locale.to_s == 'es' -if @car_description_es == ' ' - @pag_description = @car_description_es -else - @pag_description = t('description_show_cars') + ' ' + @brandname.brand + ' ' + @modelname.model -if I18n.locale.to_s == 'fr' -if @car_description_fr == ' ' - @pag_description = @car_description_fr -else - @pag_description = t('description_show_cars') + ' ' + @brandname.brand + ' ' + @modelname.model -if I18n.locale.to_s == 'ru' -if @car_description_ru == ' ' - @pag_description = @car_description_ru -else - @pag_description = t('description_show_cars') + ' ' + @brandname.brand + ' ' + @modelname.model - @pag_keywords = t('keywords_show_car') + ', ' + @brandname.brand + ', ' + @modelname.model - @principal_bg = false .container.header-black #TgsForm %h1.condensed-bold.text-center = t('cars').mb_chars.upcase .container.content-box -@brandmodelname = @brandname.brand + ' - ' + @modelname.model = render 'search' .col-lg-8.col-md-8.col-sm-7.col-xs-12.block-list .web-position -if I18n.locale.to_s == 'en' = link_to "The Grand Selection", root_path -if I18n.locale.to_s == 'es' = link_to "The Grand Selection", root_es_path -if I18n.locale.to_s == 'ru' = link_to "The Grand Selection", root_ru_path -if I18n.locale.to_s == 'fr' = link_to "The Grand Selection", root_fr_path = image_tag("web/mini-flecha.png", class: '') = link_to t('cars'), w_cars_path = image_tag("web/mini-flecha.png", class: '') = @brandmodelname %a{href: w_car_path + '.pdf', style: 'text-decoration: none;'} %span.link-pdf.hidden-xs = t('download_pdf') .visible-xs %span.link-pdf = t('download_pdf') %h2.show-title = @brandmodelname %div.reference-car = "Ref: " + @car.ref + "" - if @car.ImagesCars.exists? - @cont_img = 0 .img-principal-page .slider-for - @car.ImagesCars.each do |img| %div.zoom-gallery1.zoom-gallery-conf = link_to(image_tag(img.image.slide, class: 'img-thumbnail'), root_url.chomp('/') + img.image.url, target: '_blank', :title => @brandmodelname, "data-source" => "") - @cont_img = @cont_img+1 - if @cont_img > 1 .col-lg-12 .margin-sub-img .slider-nav - @car.ImagesCars.each do |img| %div.margin-on-sub-img = image_tag(img.image.thumblittle, class: 'img-thumbnail') - else .center = image_tag("web/car-no-foto-big.png", class: 'img-thumbnail', size: '820x410') - unless @car.price_day == nil or @car.price_day == "" and @car.price_week == nil or @car.price_week == "" .col-lg-12 .car-price = t('price') .hr-list-show .col-lg-12.car-price-text - unless @car.price_day == nil or @car.price_day == "" .col-lg-6.col-md-6 = t('day') + ': ' + @car.price_day.to_s + ' €' - unless @car.price_week == nil or @car.price_week == "" .col-lg-6.col-md-6 = t('week') + ': ' + @car.price_week.to_s + ' €' .col-lg-12 .car-features = t('vehicle_features') .hr-list-show %ul.car-ico.hidden-xs - unless @car.n_doors.nil? or @car.n_doors == '' %li.car-ico-doors = t('n_doors') + ': ' + @car.n_doors.to_s - else %li.car-ico-doors = t('n_doors') + ': ' + '(?)' - if @car.air_conditioning == '1' %li.car-ico-air = t('air_conditioning') - else = image_tag("web/icons/car-vacio.png", :alt => "") - if @car.transmission == 'manual' %li.car-ico-transmission = t('t_manual') - if @car.transmission == 'auto' %li.car-ico-transmission = t('t_auto') %br %ul.car-ico2.visible-xs - unless @car.n_doors.nil? or @car.n_doors == '' %li.car-ico-doors = t('n_doors') + ': ' + @car.n_doors.to_s - else %li.car-ico-doors = t('n_doors') + ': ' + '(?)' - if @car.air_conditioning == '1' %li.car-ico-air = t('air_conditioning') - else = image_tag("web/icons/car-vacio.png", :alt => "") - if @car.transmission == 'manual' %li.car-ico-transmission = t('t_manual') - if @car.transmission == 'auto' %li.car-ico-transmission = t('t_auto') %br .col-lg-12 .car-capacity = t('capacity') .hr-list-show %ul.car-ico.hidden-xs - unless @car.n_passengers.nil? or @car.n_passengers == '' %li.car-ico-passengers = t('n_passengers') + ': ' + @car.n_passengers.to_s - else %li.car-ico-passengers = t('n_passengers') + ': ' + '(?)' - unless @car.hand_luggage.nil? or @car.hand_luggage == '' %li.car-ico-bag = t('hand_luggage') + ': ' + @car.hand_luggage.to_s - else %li.car-ico-bag = t('hand_luggage') + ': ' + '(?)' - unless @car.big_luggage.nil? or @car.big_luggage == '' %li.car-ico-big = t('big_luggage') + ': ' + @car.big_luggage.to_s - else %li.car-ico-big = t('big_luggage') + ': ' + '(?)' %br %br %ul.car-ico2.visible-xs - unless @car.n_passengers.nil? or @car.n_passengers == '' %li.car-ico-passengers = t('n_passengers') + ': ' + @car.n_passengers.to_s - else %li.car-ico-passengers = t('n_passengers') + ': ' + '(?)' - unless @car.hand_luggage.nil? or @car.hand_luggage == '' %li.car-ico-bag = t('hand_luggage') + ': ' + @car.hand_luggage.to_s - else %li.car-ico-bag = t('hand_luggage') + ': ' + '(?)' - unless @car.big_luggage.nil? or @car.big_luggage == '' %li.car-ico-big = t('big_luggage') + ': ' + @car.big_luggage.to_s - else %li.car-ico-big = t('big_luggage') + ': ' + '(?)' %br %br - if @car.text_en != '' .col-lg-12 .car-description = t('description') .hr-list-show .car-description-text -if I18n.locale.to_s == 'en' = raw(@car.text_en) -if I18n.locale.to_s == 'es' = raw(@car.text_es) -if I18n.locale.to_s == 'ru' = raw(@car.text_ru) -if I18n.locale.to_s == 'fr' = raw(@car.text_fr) .col-lg-12.col-md-12.col-sm-12.col-xs-12.back.center %a{href: _back_url, style: 'text-decoration: none;'} = image_tag("web/back.png", class: 'center') = render 'layouts/partials/index/footer'