- base_url = "http://#{request.host_with_port}" - @base_url = base_url - @@contact_type = "rental" - @@url = request.original_url - @locale = I18n.locale.to_s - @pag_title = t('title_show_sitemap') - @pag_description = t('description_show_sitemap') - @pag_keywords = t('keywords_show_sitemap') - @principal_bg = true - @og_title = t('title_show_sitemap') - @og_type = t('real_estate') - @og_url = request.original_url - @og_image = "/assets/web/the-grand-selection-logo-og.jpg" - @og_description = t('description_show_sitemap') - @hreflang_en = "https://#{request.host}"+sitemap_html_en_path - @hreflang_es = "https://#{request.host}"+sitemap_html_es_path - @hreflang_ru = "https://#{request.host}"+(CGI.unescape(sitemap_html_ru_path)) - @hreflang_fr = "https://#{request.host}"+sitemap_html_fr_path .container .row %h1.center.sitemap-title .na = t('sitemap').mb_chars.upcase .col-lg-12.col-md-12.col-sm-12.col-xs-12.center %h4.sitemap-title-n = t('the_grand_selection').mb_chars.upcase %ul.sitemap %li %a{href: w_accommodations_path} = t('accommodations') %li %a{:href => w_restaurants_path} = t('restaurants') %li %a{:href => w_activities_path} = t('activities') %li %a{:href => w_services_path} = t('services') %li %a{:href => w_events_path} = t('events') %li %a{:href => w_hotels_path} = t('hotels') %li %a{href: w_contact_index_path} = t('contact') %li %a{href: w_cookies_path} = t('cookies-policy') -if @our_best_offer_counted && @our_best_offer_counted.count > 0 %li %a{:href => w_our_best_offer_index_path, :title => t('our_best_offer')} = t('our_best_offer') .col-lg-12.col-md-12.col-sm-12.col-xs-12.center %h4.sitemap-title-n = t('accommodations').mb_chars.upcase %ul.sitemap.center - @accommodations.order("pag_accommodation").each do |accommodation| - if @locale == "en" - @title = accommodation.title_en - if @locale == "es" - @title = accommodation.title_es - if @locale == "ru" - @title = accommodation.title_ru - if @locale == "fr" - @title = accommodation.title_fr -if accommodation.pag_accommodation == 'apartment' - @pag_accomm = t('apartment') %li %a{href: w_accommodations_apartment_path(accommodation)} = @title + " (" + @pag_accomm + ' - ' + "TGS-A" + accommodation.id.to_s + ")" -if accommodation.pag_accommodation == 'villa' - @pag_accomm = t('villa') %li %a{href: w_accommodations_villa_path(accommodation)} = @title + " (" + @pag_accomm + ' - ' + "TGS-A" + accommodation.id.to_s + ")" -if accommodation.pag_accommodation == 'penthouse' - @pag_accomm = t('penthouse') %li %a{href: w_accommodations_penthouse_path(accommodation)} = @title + " (" + @pag_accomm + ' - ' + "TGS-A" + accommodation.id.to_s + ")" -if accommodation.pag_accommodation == 'chalet' - @pag_accomm = t('chalet') %li %a{href: w_accommodations_chalet_path(accommodation)} = @title + " (" + @pag_accomm + ' - ' + "TGS-A" + accommodation.id.to_s + ")" -if accommodation.pag_accommodation == 'land' - @pag_accomm = t('land') %li %a{href: w_accommodations_land_path(accommodation)} = @title + " (" + @pag_accomm + ' - ' + "TGS-A" + accommodation.id.to_s + ")" -if accommodation.pag_accommodation == 'commercial property' - @pag_accomm = t('local') %li %a{href: w_accommodations_local_path(accommodation)} = @title + " (" + @pag_accomm + ' - ' + "TGS-A" + accommodation.id.to_s + ")" -if accommodation.pag_accommodation == 'townhouse' - @pag_accomm = t('townhouse') %li %a{href: w_accommodations_townhouse_path(accommodation)} = @title + " (" + @pag_accomm + ' - ' + "TGS-A" + accommodation.id.to_s + ")" -if accommodation.pag_accommodation == 'investment project' - @pag_accomm = t('investment-project') %li %a{href: w_accommodations_investment_project_path(accommodation)} = @title + " (" + @pag_accomm + ' - ' + "TGS-A" + accommodation.id.to_s + ")" -if accommodation.pag_accommodation == 'room' - @pag_accomm = t('room') %li %a{href: w_accommodations_room_path(accommodation)} = @title + " (" + @pag_accomm + ' - ' + "TGS-A" + accommodation.id.to_s + ")" .col-lg-12.col-md-12.col-sm-12.col-xs-12.center %h4.sitemap-title-n = t('hotels').mb_chars.upcase %ul.sitemap.center - @hotels.order("id").each do |hotel| - if @locale == "en" - @title = hotel.title_en - if @locale == "es" - @title = hotel.title_es - if @locale == "ru" - @title = hotel.title_ru - if @locale == "fr" - @title = hotel.title_fr %li %a{href: w_hotel_path(hotel)} = @title + " (" + "TGS-H" + hotel.id.to_s + ")" .col-lg-12.col-md-12.col-sm-12.col-xs-12.center %h4.sitemap-title-n = t('restaurants').mb_chars.upcase %ul.sitemap.center - @restaurants.order("id").each do |restaurant| - if @locale == "en" - @title = restaurant.title_en - if @locale == "es" - @title = restaurant.title_es - if @locale == "ru" - @title = restaurant.title_ru - if @locale == "fr" - @title = restaurant.title_fr %li %a{href: w_restaurant_path(restaurant)} = @title + " (" + "TGS-R" + restaurant.id.to_s + ")" .col-lg-12.col-md-12.col-sm-12.col-xs-12.center %h4.sitemap-title-n = t('activities').mb_chars.upcase %ul.sitemap.center - @activities.order("id").each do |activity| - if @locale == "en" - @title = activity.title_en - if @locale == "es" - @title = activity.title_es - if @locale == "ru" - @title = activity.title_ru - if @locale == "fr" - @title = activity.title_fr %li %a{href: w_activity_path(activity)} = @title + " (" + "TGS-AC" + activity.id.to_s + ")" .col-lg-12.col-md-12.col-sm-12.col-xs-12.center %h4.sitemap-title-n = t('services').mb_chars.upcase %ul.sitemap.center - @services.order("id").each do |service| - if @locale == "en" - @title = service.title_en - if @locale == "es" - @title = service.title_es - if @locale == "ru" - @title = service.title_ru - if @locale == "fr" - @title = service.title_fr %li %a{href: w_service_path(service)} = @title + " (" + "TGS-S" + service.id.to_s + ")" .col-lg-12.col-md-12.col-sm-12.col-xs-12.center %h4.sitemap-title-n = t('events').mb_chars.upcase %ul.sitemap.center - @events.order("id").each do |event| - if @locale == "en" - @title = event.title_en - if @locale == "es" - @title = event.title_es - if @locale == "ru" - @title = event.title_ru - if @locale == "fr" - @title = event.title_fr %li %a{href: w_event_path(event)} = @title + " (" + "TGS-E" + event.id.to_s + ")" .col-lg-12.col-md-12.col-sm-12.col-xs-12.center %br = render 'layouts/partials/index/footer'