mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Adding mailto directive
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
Darkswarm.directive "mailto", (Navigation)->
|
||||
restrict: 'A'
|
||||
link: (scope, element, attrs)->
|
||||
element.bind 'click', (e)->
|
||||
e.preventDefault()
|
||||
window.location.href = "mailto:#{attrs.href.split("").reverse().join("")}"
|
||||
@@ -13,9 +13,7 @@
|
||||
%i.fi-social-linkedin
|
||||
LinkedIn
|
||||
%p
|
||||
%a.button.neutral-btn{href: '#', target: '_blank'}
|
||||
%i.fi-at-sign
|
||||
Email us at
|
||||
%a{href: "hello@openfoodnetwork.org".reverse, target: '_blank', mailto: true}
|
||||
%span.email
|
||||
= "hello@openfoodnetwork.org".reverse
|
||||
.small-2.columns
|
||||
|
||||
Reference in New Issue
Block a user