Sha256: d6383bf0d9d37e804a39c6d0bc1c59732d0f7ae55acbdecfb90e5b7747cc4bcf

Contents?: true

Size: 1.14 KB

Versions: 3

Compression:

Stored size: 1.14 KB

Contents

- records_in_the_row = 4
- if phone.present? || email.present?
  .row.features-small.mt-5.wow.fadeIn
    - if phone.present?
      .col-xl-3.col-lg-6
        .row.link{ data: { href: "tel:#{phone}" } }
          .col-2
            %i.fas.fa-2x.mb-1.fa-phone.indigo-text{ aria: { hidden: 'true' } }
          .col-10.mb-2.pl-3
            %h5.feature-title.font-bold.mb-1
              = phone
    - if email.present?
      .col-xl-3.col-lg-6
        .row.link{ data: { href: "mailto:#{email}" } }
          .col-2
            %i.fas.fa-2x.mb-1.fa-envelop.indigo-text{ aria: { hidden: 'true' } }
          .col-10.mb-2.pl-3
            %h5.feature-title.font-bold.mb-1
              = email 
- social_networks&.each_slice(records_in_the_row) do |slice|
  .row.features-small.mt-5.wow.fadeIn
    - slice.each do |social_network, index|
      .col-xl-3.col-lg-6
        .row.link{ data: { href: profile_url(social_network) } }
          .col-2
            %i.fab.fa-2x.mb-1.indigo-text{ aria: { hidden: 'true' }, class: "fa-#{social_network.network_name}" }
          .col-10.mb-2.pl-3
            %h5.feature-title.font-bold.mb-1
              = social_network.title

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tramway-landing-2.2.0.1 app/views/tramway/landing/blocks/block_types/contacts/_without_map.html.haml
tramway-landing-2.2 app/views/tramway/landing/blocks/block_types/contacts/_without_map.html.haml
tramway-landing-2.1.0.2 app/views/tramway/landing/blocks/block_types/contacts/_without_map.html.haml