aboutsummaryrefslogtreecommitdiff
path: root/templates/full
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-08-27 23:45:17 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-08-27 23:45:17 -0700
commit27004f3b9c32ebf3a9f99fa2388ebcbd3fcfb5de (patch)
tree4599b7b83a9fd83b8fe0f1cb6afbf4f5fbc24dda /templates/full
parent6c3c6c5ead98e38b152685dd3528c0f70cdcac50 (diff)
downloadtraccar-server-27004f3b9c32ebf3a9f99fa2388ebcbd3fcfb5de.tar.gz
traccar-server-27004f3b9c32ebf3a9f99fa2388ebcbd3fcfb5de.tar.bz2
traccar-server-27004f3b9c32ebf3a9f99fa2388ebcbd3fcfb5de.zip
Add device inactivity event
Diffstat (limited to 'templates/full')
-rw-r--r--templates/full/deviceInactive.vm12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/full/deviceInactive.vm b/templates/full/deviceInactive.vm
new file mode 100644
index 000000000..51aead653
--- /dev/null
+++ b/templates/full/deviceInactive.vm
@@ -0,0 +1,12 @@
+#set($subject = "$device.name: inactive")
+#set($lastUpdate = $dateTool.getDate())
+#set($ignore = $lastUpdate.setTime($event.getLong("lastUpdate")))
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Inactive<br>
+Last Update: $dateTool.format("YYYY-MM-dd HH:mm:ss", $lastUpdate, $locale, $timezone)<br>
+Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
+</body>
+</html>