mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
Div is the default element in HAML, so we don't need to specify it. https://haml.info/docs/yardoc/file.REFERENCE.html#implicit-div-elements
16 lines
912 B
Plaintext
16 lines
912 B
Plaintext
.contact-container
|
|
.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"}
|