From 27004f3b9c32ebf3a9f99fa2388ebcbd3fcfb5de Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 27 Aug 2020 23:45:17 -0700 Subject: Add device inactivity event --- templates/full/deviceInactive.vm | 12 ++++++++++++ templates/short/deviceInactive.vm | 3 +++ 2 files changed, 15 insertions(+) create mode 100644 templates/full/deviceInactive.vm create mode 100644 templates/short/deviceInactive.vm (limited to 'templates') 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"))) + + + +Device: $device.name
+Inactive
+Last Update: $dateTool.format("YYYY-MM-dd HH:mm:ss", $lastUpdate, $locale, $timezone)
+Link: $webUrl?eventId=$event.id + + diff --git a/templates/short/deviceInactive.vm b/templates/short/deviceInactive.vm new file mode 100644 index 000000000..d7431124c --- /dev/null +++ b/templates/short/deviceInactive.vm @@ -0,0 +1,3 @@ +#set($lastUpdate = $dateTool.getDate()) +#set($ignore = $lastUpdate.setTime($event.getLong("lastUpdate"))) +$device.name inactive from $dateTool.format("YYYY-MM-dd HH:mm:ss", $lastUpdate, $locale, $timezone) -- cgit v1.2.3