Use native <a /> element to create a mailto link

- Nothing special done by helper method `mail_to` so using a native <a /> element (and it's correctly escaped)
This commit is contained in:
Jean-Baptiste Bellet
2021-03-18 15:09:21 +01:00
parent be3e184651
commit d79c457dae

View File

@@ -74,7 +74,8 @@
%span.state{'ng-class' => 'order.shipment_state', 'ng-if' => 'order.shipment_state'}
{{'js.admin.orders.shipment_states.' + order.shipment_state | t}}
%td
= mail_to "{{order.email}}"
%a{ ng: { href: "mailto:{{order.email}}" } }
{{order.email}}
%br
{{order.full_name}}
%td.align-center