Sha256: 2ca59d9b95e4350da28e2c11b1db597e00d72cb226d6c94e48b15c5d21d1f399

Contents?: true

Size: 1.55 KB

Versions: 53

Compression:

Stored size: 1.55 KB

Contents

%script{ src: 'https://maps.google.com/maps/api/js?key=AIzaSyD4shvkgS4S4Mz-SEWbigeCQ54fHmFPxUo' }
:javascript
  function regular_map() {
    var var_location = new google.maps.LatLng(#{yield(:latitude)}, #{yield(:longtitude)});
 
    var var_mapoptions = {
        center: var_location,
        zoom: 14
    };
 
    var var_map = new google.maps.Map(document.getElementById("map-container"),
        var_mapoptions);
 
    var var_marker = new google.maps.Marker({
        position: var_location,
        map: var_map,
        title: "School"
    });
  }
  google.maps.event.addDomListener(window, 'load', regular_map);
.row
  - if defined?(::Tramway::Profiles)
    .col-lg-5.col-md-12
      - social_networks = (@application.social_networks.active if @application.respond_to?(:social_networks)) unless social_networks
      - social_networks&.each do |profile|
        %ul.list-group
          %li.list-group-item
            = profile_link profile
  .col-lg-7.col-md-12
    .row.text-center
      - if yield(:address).present?
        .col-lg-4.col-md-12.mb-3
          %p
            = fa_icon :map, class: 'grey-text'
            = yield :address
      - if yield(:schedule).present?
        .col-lg-4.col-md-6.mb-3
          %p
            = fas_icon :building, class: 'grey-text'
            = yield :schedule
      - if yield(:phone).present?
        .col-lg-4.col-md-6.mb-3
          %p
            = tel_tag yield(:phone) do
              = fa_icon :phone, class: 'grey-text'
              = yield :phone
    #map-container.z-depth-1-half.map-container{ style: 'height: 400px' }

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
tramway-landing-3.3.0.6 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.3.0.5 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.3.0.4 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.3.0.3 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.3.0.2 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.3.0.1 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.3 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.2.0.3 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.2.0.2 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.2 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.1.1.12 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.1.1.11 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.1.1.10 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.1.1.9 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.1.1.8 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.1.1.7 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.1.1.6 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.1.1.5 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.1.1.4 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml
tramway-landing-3.1.1.3 app/views/tramway/landing/blocks/block_types/contacts/_with_map.html.haml