aboutsummaryrefslogtreecommitdiff
path: root/templates/mail
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-06-26 12:05:16 +0500
committerAbyss777 <abyss@fox5.ru>2018-06-26 12:05:16 +0500
commit825ee0d178a24620f075cb4ffb8d49c75b046484 (patch)
tree2bc60aaea8d4c1eff707ae6e0b8ff558d45d15dc /templates/mail
parentaba402226403f8b3eb58cc01e8f536eb4104d35a (diff)
downloadtrackermap-server-825ee0d178a24620f075cb4ffb8d49c75b046484.tar.gz
trackermap-server-825ee0d178a24620f075cb4ffb8d49c75b046484.tar.bz2
trackermap-server-825ee0d178a24620f075cb4ffb8d49c75b046484.zip
Cleanup and some adjustments
Diffstat (limited to 'templates/mail')
-rw-r--r--templates/mail/alarm.vm10
-rw-r--r--templates/mail/commandResult.vm10
-rw-r--r--templates/mail/deviceFuelDrop.vm9
-rw-r--r--templates/mail/deviceMoving.vm10
-rw-r--r--templates/mail/deviceOffline.vm10
-rw-r--r--templates/mail/deviceOnline.vm10
-rw-r--r--templates/mail/deviceOverspeed.vm19
-rw-r--r--templates/mail/deviceStopped.vm10
-rw-r--r--templates/mail/deviceUnknown.vm10
-rw-r--r--templates/mail/driverChanged.vm10
-rw-r--r--templates/mail/geofenceEnter.vm10
-rw-r--r--templates/mail/geofenceExit.vm10
-rw-r--r--templates/mail/ignitionOff.vm10
-rw-r--r--templates/mail/ignitionOn.vm10
-rw-r--r--templates/mail/maintenance.vm10
-rw-r--r--templates/mail/test.vm7
-rw-r--r--templates/mail/textMessage.vm9
-rw-r--r--templates/mail/unknown.vm7
18 files changed, 0 insertions, 181 deletions
diff --git a/templates/mail/alarm.vm b/templates/mail/alarm.vm
deleted file mode 100644
index 8f1164291..000000000
--- a/templates/mail/alarm.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: alarm!")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Alarm: $position.getString("alarm")<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
-</body>
-</html>
diff --git a/templates/mail/commandResult.vm b/templates/mail/commandResult.vm
deleted file mode 100644
index 5b6d8ef3e..000000000
--- a/templates/mail/commandResult.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: command result received")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Result: $position.getString("result")<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
-</body>
-</html>
diff --git a/templates/mail/deviceFuelDrop.vm b/templates/mail/deviceFuelDrop.vm
deleted file mode 100644
index c30ec3a1c..000000000
--- a/templates/mail/deviceFuelDrop.vm
+++ /dev/null
@@ -1,9 +0,0 @@
-#set($subject = "$device.name: fuel drop")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
-</body>
-</html>
diff --git a/templates/mail/deviceMoving.vm b/templates/mail/deviceMoving.vm
deleted file mode 100644
index 6e98af1de..000000000
--- a/templates/mail/deviceMoving.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: moving")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Moving<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
-</body>
-</html>
diff --git a/templates/mail/deviceOffline.vm b/templates/mail/deviceOffline.vm
deleted file mode 100644
index 1f6d02fb2..000000000
--- a/templates/mail/deviceOffline.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: offline")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Offline<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
-</body>
-</html>
diff --git a/templates/mail/deviceOnline.vm b/templates/mail/deviceOnline.vm
deleted file mode 100644
index 9211eff11..000000000
--- a/templates/mail/deviceOnline.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: online")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Online<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
-</body>
-</html>
diff --git a/templates/mail/deviceOverspeed.vm b/templates/mail/deviceOverspeed.vm
deleted file mode 100644
index e5e576f3a..000000000
--- a/templates/mail/deviceOverspeed.vm
+++ /dev/null
@@ -1,19 +0,0 @@
-#set($subject = "$device.name: exceeds the speed")
-#if($speedUnit == 'kmh')
-#set($speedValue = $position.speed * 1.852)
-#set($speedString = $numberTool.format("0.0 km/h", $speedValue))
-#elseif($speedUnit == 'mph')
-#set($speedValue = $position.speed * 1.15078)
-#set($speedString = $numberTool.format("0.0 mph", $speedValue))
-#else
-#set($speedString = $numberTool.format("0.0 kn", $position.speed))
-#end
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Exceeds the speed: $speedString#{if}($geofence) in $geofence.name#{else}#{end}<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
-</body>
-</html>
diff --git a/templates/mail/deviceStopped.vm b/templates/mail/deviceStopped.vm
deleted file mode 100644
index 2ec0f8db9..000000000
--- a/templates/mail/deviceStopped.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: stopped")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Stopped<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
-</body>
-</html>
diff --git a/templates/mail/deviceUnknown.vm b/templates/mail/deviceUnknown.vm
deleted file mode 100644
index 34fa01a8a..000000000
--- a/templates/mail/deviceUnknown.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: status is unknown")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Status is unknown<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
-</body>
-</html>
diff --git a/templates/mail/driverChanged.vm b/templates/mail/driverChanged.vm
deleted file mode 100644
index ba1e68661..000000000
--- a/templates/mail/driverChanged.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: driver has changed")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
-Driver: #{if}($driver)$driver.name#{else}$event.getString("driverUniqueId")#{end}
-</body>
-</html>
diff --git a/templates/mail/geofenceEnter.vm b/templates/mail/geofenceEnter.vm
deleted file mode 100644
index e83a0de62..000000000
--- a/templates/mail/geofenceEnter.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: has entered geofence")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Has entered geofence: $geofence.name<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
-</body>
-</html>
diff --git a/templates/mail/geofenceExit.vm b/templates/mail/geofenceExit.vm
deleted file mode 100644
index 3557f6eb2..000000000
--- a/templates/mail/geofenceExit.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: has exited geofence")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Has exited geofence: $geofence.name<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
-</body>
-</html>
diff --git a/templates/mail/ignitionOff.vm b/templates/mail/ignitionOff.vm
deleted file mode 100644
index 0281eef02..000000000
--- a/templates/mail/ignitionOff.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: ignition OFF")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Ignition OFF<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
-</body>
-</html>
diff --git a/templates/mail/ignitionOn.vm b/templates/mail/ignitionOn.vm
deleted file mode 100644
index 27135a7f0..000000000
--- a/templates/mail/ignitionOn.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: ignition ON")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Ignition ON<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
-</body>
-</html>
diff --git a/templates/mail/maintenance.vm b/templates/mail/maintenance.vm
deleted file mode 100644
index c6973f97a..000000000
--- a/templates/mail/maintenance.vm
+++ /dev/null
@@ -1,10 +0,0 @@
-#set($subject = "$device.name: maintenance is required")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Maintenance is required: $maintenance.name<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-Point: <a href="$webUrl?eventId=$event.id">#{if}($position.address)$position.address#{else}$position.latitude&deg;, $position.longitude&deg;#{end}</a><br>
-</body>
-</html>
diff --git a/templates/mail/test.vm b/templates/mail/test.vm
deleted file mode 100644
index 93cbdc549..000000000
--- a/templates/mail/test.vm
+++ /dev/null
@@ -1,7 +0,0 @@
-#set($subject = "Test message")
-<!DOCTYPE html>
-<html>
-<body>
-Test message
-</body>
-</html>
diff --git a/templates/mail/textMessage.vm b/templates/mail/textMessage.vm
deleted file mode 100644
index 174173c85..000000000
--- a/templates/mail/textMessage.vm
+++ /dev/null
@@ -1,9 +0,0 @@
-#set($subject = "$device.name: text message received")
-<!DOCTYPE html>
-<html>
-<body>
-Device: $device.name<br>
-Message: $event.getString("message")<br>
-Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.serverTime, $locale, $timezone)<br>
-</body>
-</html>
diff --git a/templates/mail/unknown.vm b/templates/mail/unknown.vm
deleted file mode 100644
index 566ce0d42..000000000
--- a/templates/mail/unknown.vm
+++ /dev/null
@@ -1,7 +0,0 @@
-#set($subject = "Unknown type")
-<!DOCTYPE html>
-<html>
-<body>
-Unknown type
-</body>
-</html>