mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-12 23:27:48 +00:00
125 lines
3.7 KiB
Plaintext
125 lines
3.7 KiB
Plaintext
%div.contact-container{bindonce: true}
|
|
|
|
- if @group.email.present? || @group.website.present? || @group.phone.present?
|
|
%div.modal-centered
|
|
%p.modal-header Contact
|
|
%p
|
|
- if @group.phone.present? && @group.phone != 'undefined'
|
|
Call
|
|
%a{tel: @group.phone}
|
|
= @group.phone
|
|
- if @group.email.present?
|
|
Email
|
|
%a{mailto: true, href: @group.email.reverse}
|
|
= @group.email.gsub('@', ' at ').gsub('.', ' dot ')
|
|
- if @group.website.present?
|
|
Website
|
|
%a{href: @group.website}
|
|
= @group.website
|
|
|
|
|
|
%div.contact-container{bindonce: true}
|
|
/ - if @group.email || @group.website || @group.phone
|
|
%div.modal-centered
|
|
%p.modal-header Address
|
|
%p
|
|
Container for address info
|
|
/ = @group.phone
|
|
|
|
%div.contact-container{bindonce: true}
|
|
/ - if @group.email || @group.website || @group.phone
|
|
%div.modal-centered
|
|
%p.modal-header Follow
|
|
%p
|
|
Container for follow us info
|
|
/ = @group.phone
|
|
|
|
/ %p.word-wrap{"ng-if" => "enterprise.email"}
|
|
/ %a{"ng-href" => "{{enterprise.email | stripUrl}}", target: "_blank", mailto: true}
|
|
/ %span.email
|
|
/ {{ enterprise.email | stripUrl }}
|
|
|
|
/ %p.word-wrap{"ng-if" => "enterprise.website"}
|
|
/ %a{"ng-href" => "http://{{enterprise.website | stripUrl}}", target: "_blank" }
|
|
/ {{ enterprise.website | stripUrl }}
|
|
|
|
|
|
/ %h4 Contact us
|
|
/ - if @group.phone
|
|
/ .row
|
|
/ .small-2.columns
|
|
/ Call
|
|
/ .small-10.columns
|
|
/ = @group.phone
|
|
/ - if @group.email
|
|
/ .row
|
|
/ .small-2.columns
|
|
/ Email
|
|
/ .small-10.columns
|
|
/ = @group.email
|
|
/ - if @group.website
|
|
/ .row
|
|
/ .small-2.columns
|
|
/ Website
|
|
/ .small-10.columns
|
|
/ = @group.website
|
|
/ %p
|
|
/ %h6 Address
|
|
/ %p
|
|
/ = @group.address.address1
|
|
/ - if @group.address.address2
|
|
/ %br
|
|
/ = @group.address.address2
|
|
/ %br
|
|
/ = @group.address.city
|
|
/ ,
|
|
/ = @group.address.state
|
|
/ = @group.address.zipcode
|
|
/ %br
|
|
/ = @group.address.country
|
|
/ %p
|
|
/ %h6 Follow us
|
|
/ - if @group.facebook
|
|
/ .row
|
|
/ .small-2.columns
|
|
/ Facebook
|
|
/ .small-10.columns
|
|
/ = @group.facebook
|
|
/ - if @group.instagram
|
|
/ .row
|
|
/ .small-2.columns
|
|
/ Instagram
|
|
/ .small-10.columns
|
|
/ = @group.instagram
|
|
/ - if @group.linkedin
|
|
/ .row
|
|
/ .small-2.columns
|
|
/ LinkedIn
|
|
/ .small-10.columns
|
|
/ = @group.linkedin
|
|
/ - if @group.twitter
|
|
/ .row
|
|
/ .small-2.columns
|
|
/ Twitter
|
|
/ .small-10.columns
|
|
/ = @group.twitter
|
|
|
|
/ .small-12.columns.pad-top
|
|
/ .row.pad-top
|
|
/ .small-12.columns.text-center.small
|
|
/ %hr
|
|
/ Copyright this year
|
|
/ = @group.name
|
|
/ %p
|
|
/ -if @group.facebook
|
|
/ %a{title:'Follow us on Facebook', href: 'https://www.facebook.com/' + @group.facebook, target: '_blank'}
|
|
/ %i.ofn-i_044-facebook
|
|
/ -if @group.email
|
|
/ %a{title:'Email us', href: @group.email.reverse, mailto: true}
|
|
/ %i.ofn-i_050-mail-circle
|
|
/ -if @group.website
|
|
/ %a{title:'Visit our website', href: 'http://' + @group.website, target: '_blank'}
|
|
/ %i.ofn-i_049-web
|
|
/ %p
|
|
/
|