diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 3fb1a6bb..c6b2f89c 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -22,7 +22,7 @@ = javascript_include_tag 'application', 'jquery.form', 'jquery.remotipart' - if current_page?(saved_path) || current_page?(map_path) || current_page?(operators_path) || ((defined? @region) and current_page?(region_homepage_path)) = stylesheet_link_tag 'lightbox', 'https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.css' - = javascript_include_tag 'lightbox.min', 'https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.js', 'https://unpkg.com/pmtiles@3.2.0/dist/pmtiles.js', 'https://unpkg.com/protomaps-themes-base@3/dist/protomaps-themes-base.js' + = javascript_include_tag 'lightbox.min', 'https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.js', 'https://unpkg.com/pmtiles@3.2.0/dist/pmtiles.js' - if ((defined? @region) and current_page?(suggest_path)) || current_page?(map_location_suggest_path) = javascript_include_tag 'https://maps.googleapis.com/maps/api/js?libraries=places&key=' + ENV['GOOGLE_MAPS_API_KEY'].to_s, 'https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js' = stylesheet_link_tag 'https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css'