From 6c64c6e87a25b4d2339f2fd8d83fa4bc36d461f2 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 7 Dec 2016 14:15:18 +0500 Subject: Implement mail templates --- templates/mail/deviceOverspeed.vm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 templates/mail/deviceOverspeed.vm (limited to 'templates/mail/deviceOverspeed.vm') diff --git a/templates/mail/deviceOverspeed.vm b/templates/mail/deviceOverspeed.vm new file mode 100644 index 000000000..5f8c65096 --- /dev/null +++ b/templates/mail/deviceOverspeed.vm @@ -0,0 +1,17 @@ +#set($subject = "$device.name: exceeds the speed") +#if($speedUnits == 'kmh') +#set($speedString = $position.speed * 1.852 + ' km/h') +#elseif($speedUnits == 'mph') +#set($speedString = $position.speed * 1.15078 + ' mph') +#else +#set($speedString = "$position.speed kn") +#end + + + +Device: $device.name
+Exceeds the speed: $speedString
+Point: #if($position.address)$position.address#{else}$position.latitude°, $position.longitude°#end
+Time: $event.serverTime
+ + -- cgit v1.2.3