- @@url = request.original_url - @pag_title = t('title_index_events') - @pag_description = t('description_index_events') - @pag_keywords = t('keywords_index_events') - @principal_bg = true - @locale = I18n.locale.to_s - @li = '· ' - @og_title = t('title_index_events') - @og_type = t('reservation') - @og_url = request.original_url - @og_image = "/assets/web/the-grand-selection-logo-og.jpg" - @og_description = t('description_index_events') - @hreflang_en = "https://#{request.host}"+w_events_en_path - @hreflang_es = "https://#{request.host}"+w_events_es_path - @hreflang_ru = "https://#{request.host}"+(CGI.unescape(w_events_ru_path)) - @hreflang_fr = "https://#{request.host}"+w_events_fr_path #w_events_jquery_start #w_events_jquery_start2 .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 = "Events Calendar" -if I18n.locale.to_s == 'fr' .h2-welcome-text = "Calendrier des événements" -if I18n.locale.to_s == 'es' .h2-welcome-text = "Calendario de eventos" -if I18n.locale.to_s == 'ru' .h2-welcome-text-ru = "Календарь событий" .container .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 %h1.gallery-title = t('events_h1') .col-lg-12.col-md-12.col-sm-12.col-xs-12 -if @web_page_configs_events -if I18n.locale.to_s == 'en' .col-lg-12.col-md-12.col-sm-12.col-xs-12 = raw(@web_page_configs_events.tab_1_en) %br = raw(@web_page_configs_events.tab_2_en) -if I18n.locale.to_s == 'es' .col-lg-12.col-md-12.col-sm-12.col-xs-12 = raw(@web_page_configs_events.tab_1_es) %br = raw(@web_page_configs_events.tab_2_es) -if I18n.locale.to_s == 'ru' .col-lg-12.col-md-12.col-sm-12.col-xs-12 = raw(@web_page_configs_events.tab_1_ru) %br = raw(@web_page_configs_events.tab_2_ru) -if I18n.locale.to_s == 'fr' .col-lg-12.col-md-12.col-sm-12.col-xs-12 = raw(@web_page_configs_events.tab_1_fr) %br = raw(@web_page_configs_events.tab_2_fr) .col-lg-12.col-md-12.col-sm-12.col-xs-12 .col-lg-12.col-md-12.col-sm-12.col-xs-12.events-back-search.font-search = form_tag w_events_path, :method => 'get', :id => "form-search-in", :class => '' do .col-lg-3.col-md-3.col-sm-1 .col-lg-2.col-md-2.col-sm-3.col-xs-12.center = label_tag :datefrom, t('from'), class: 'label-searcher-event' %br = date_field_tag :datefrom, request.params[:datefrom], class: 'form-control-event margin-form-ev', :min=> Date.today .col-lg-2.col-md-2.col-sm-3.col-xs-12.center = label_tag :dateto, t('to'), class: 'label-searcher-event' %br = date_field_tag :dateto, request.params[:dateto], class: 'form-control-event margin-form-ev', :min=> Date.today .col-lg-2.col-md-2.col-sm-4.col-xs-12.margin-form-ev %br %button.btn.btn-block.btn-primary-search.btn-mod.btn-round{:type => "submit", :class => 'padding-form margin-form-ev', :title => t('search')} .fas.fa-search = t('search') .col-lg-3.col-md-3.col-sm-1 .container-fluid .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 - @num_event_foto = 0 - @events.each do |w_events| - @location_a = '' - @region_a = '' - @province_a = '' - @country_a = '' - @last_location_exist = '' -if @locale == 'en' - @title_locale = w_events.title_en -if @locale == 'es' - @title_locale = w_events.title_es -if @locale == 'ru' - @title_locale = w_events.title_ru -if @locale == 'fr' - @title_locale = w_events.title_fr - @countries.each do |countries| - if w_events.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_events.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_events.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_events.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 .col-lg-3.col-md-4.col-sm-6.col-xs-12.event-margin %a{href: w_event_path(w_events), style: 'text-decoration: none; color: #000000;'} %h2.titulo-event.center = @title_locale .event-date - unless w_events.datefrom_events.nil? = t('from') = l(w_events.datefrom_events, format: '%d '+I18n.t("date.month_names_s")[w_events.datefrom_events.month]+' %Y') .event-date - unless w_events.dateto_events.nil? = t('to') = l(w_events.dateto_events, format: '%d '+I18n.t("date.month_names_s")[w_events.dateto_events.month]+' %Y') .col-lg-12.col-md-12.col-sm-12.col-xs-12 - if w_events.ImagesEvent.exists? %a{href: w_event_path(w_events), style: 'text-decoration: none; color: #000000;'} = image_tag(w_events.ImagesEvent.order("position").first.image.thumbnlg.url, class: 'img-max img-events') unless w_events.ImagesEvent.order("position").first.nil? - else .item.active %a{href: w_event_path(w_events), style: 'text-decoration: none; color: #000000;'} = image_tag("web/no-foto-slide.jpg", class: 'img-max img-events', :alt => @title_locale) .col-md-12.col-sm-12.col-xs-12 .titulo-desc-event.events-desc-mobil-fix - unless @location_a.nil? or @location_a == "" = @region_a + ", " = @location_a - else - unless @region_a.nil? or @region_a == "" = @province_a + ", " = @region_a - else - unless @province_a.nil? or @province_a == "" = @country_a + ", " = @province_a - else = @country_a .desc-events.events-desc-mobil-fix .more-info-event %a{href: w_event_path(w_events), class: 'event-a'} %span.event-more-info-ic .fas.fa-info-circle %span.event-more-info = t('more') %hr .col-lg-12.col-md-12.col-sm-12.col-xs-12 .div-pagination = will_paginate @events, inner_window: 2, outter_window: 1, renderer: BootstrapPagination::Rails .page_info = page_entries_info @events, :model => Event -if @web_page_configs_events -if I18n.locale.to_s == 'en' .container .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 %br %br = raw(@web_page_configs_events.tab_3_en) -if I18n.locale.to_s == 'es' .container .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 %br %br = raw(@web_page_configs_events.tab_3_es) -if I18n.locale.to_s == 'ru' .container .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 %br %br = raw(@web_page_configs_events.tab_3_ru) -if I18n.locale.to_s == 'fr' .container .row .col-lg-12.col-md-12.col-sm-12.col-xs-12 %br %br = raw(@web_page_configs_events.tab_3_fr) = render 'layouts/partials/index/footer'