mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Uses the font awesome 4 WhatsApp icon in .svg format (which is under the Open Font License) in the pages where an enterprise's WhatsApp number appears as an hyperlink.
16 lines
920 B
Plaintext
16 lines
920 B
Plaintext
%div.contact-container
|
|
%div.modal-centered{"ng-if" => "::enterprise.email_address || enterprise.website || enterprise.phone || enterprise.whatsapp_phone"}
|
|
%p.modal-header {{'contact' | t}}
|
|
%p{"ng-if" => "::enterprise.phone", "ng-bind" => "::enterprise.phone"}
|
|
|
|
%p{"ng-if" => "::enterprise.whatsapp_phone"}
|
|
%img{ src: image_path("/map_icons/social-logos/whatsapp.svg") }
|
|
%a{"ng-href" => "{{::enterprise.whatsapp_url}}", target: "_blank", "ng-bind" => "::enterprise.whatsapp_phone"}
|
|
|
|
%p{"ng-if" => "::enterprise.email_address"}
|
|
%a{"ng-href" => "{{::enterprise.email_address | stripUrl}}", target: "_blank", mailto: true}
|
|
%span.obfuscatedEmail.email{"ng-bind" => "::enterprise.email_address | stripUrl"}
|
|
|
|
%p{"ng-if" => "enterprise.website"}
|
|
%a{"ng-href" => "http://{{::enterprise.website | stripUrl}}", target: "_blank", "ng-bind" => "::enterprise.website | stripUrl"}
|