aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorYuriy Piskarev <yuriy.piskarev@gmail.com>2023-08-24 14:16:17 +0300
committerGitHub <noreply@github.com>2023-08-24 14:16:17 +0300
commitae406c7b49a72de24d81fd74386d9638342c90ee (patch)
tree6fbcf557375b98e926c78af9c757e62c79d72a1b /templates
parent56ff656c908b19feb2fa3dcffa48cc3bcdfe9b3b (diff)
parent9aeedc90da24848ff97227d6f281eb4d1e1506ef (diff)
downloadtrackermap-server-ae406c7b49a72de24d81fd74386d9638342c90ee.tar.gz
trackermap-server-ae406c7b49a72de24d81fd74386d9638342c90ee.tar.bz2
trackermap-server-ae406c7b49a72de24d81fd74386d9638342c90ee.zip
Merge branch 'traccar:master' into master
Diffstat (limited to 'templates')
-rw-r--r--templates/export/events.xlsxbin8763 -> 9023 bytes
-rw-r--r--templates/full/alarm.vm84
-rw-r--r--templates/full/commandResult.vm6
-rw-r--r--templates/full/deviceFuelDrop.vm4
-rw-r--r--templates/full/deviceFuelIncrease.vm11
-rw-r--r--templates/full/deviceInactive.vm6
-rw-r--r--templates/full/deviceMoving.vm4
-rw-r--r--templates/full/deviceOffline.vm5
-rw-r--r--templates/full/deviceOnline.vm5
-rw-r--r--templates/full/deviceOverspeed.vm4
-rw-r--r--templates/full/deviceStopped.vm4
-rw-r--r--templates/full/deviceUnknown.vm5
-rw-r--r--templates/full/driverChanged.vm6
-rw-r--r--templates/full/geofenceEnter.vm4
-rw-r--r--templates/full/geofenceExit.vm4
-rw-r--r--templates/full/ignitionOff.vm4
-rw-r--r--templates/full/ignitionOn.vm4
-rw-r--r--templates/full/maintenance.vm4
-rw-r--r--templates/full/media.vm13
-rw-r--r--templates/full/passwordReset.vm2
-rw-r--r--templates/full/test.vm2
-rw-r--r--templates/full/textMessage.vm6
-rw-r--r--templates/short/alarm.vm80
-rw-r--r--templates/short/deviceFuelIncrease.vm2
-rw-r--r--templates/short/media.vm2
25 files changed, 243 insertions, 28 deletions
diff --git a/templates/export/events.xlsx b/templates/export/events.xlsx
index a6366750c..d0120ab8e 100644
--- a/templates/export/events.xlsx
+++ b/templates/export/events.xlsx
Binary files differ
diff --git a/templates/full/alarm.vm b/templates/full/alarm.vm
index 8eac3930a..fb596ecde 100644
--- a/templates/full/alarm.vm
+++ b/templates/full/alarm.vm
@@ -1,10 +1,90 @@
#set($subject = "$device.name: alarm!")
+#set($alarmName = $position.getString("alarm"))
+#if( $alarmName == "general")
+ #set($alarmName = "General")
+#elseif($alarmName == "sos")
+ #set($alarmName = "SOS")
+#elseif($alarmName == "vibration")
+ #set($alarmName = "Vibration")
+#elseif($alarmName == "movement")
+ #set($alarmName = "Movement")
+#elseif($alarmName == "lowspeed")
+ #set($alarmName = "Low Speed")
+#elseif($alarmName == "overspeed")
+ #set($alarmName = "Overspeed")
+#elseif($alarmName == "fallDown")
+ #set($alarmName = "Fall Down")
+#elseif($alarmName == "lowPower")
+ #set($alarmName = "Low Power")
+#elseif($alarmName == "lowBattery")
+ #set($alarmName = "Low Battery")
+#elseif($alarmName == "fault")
+ #set($alarmName = "Fault")
+#elseif($alarmName == "powerOff")
+ #set($alarmName = "Power Off")
+#elseif($alarmName == "powerOn")
+ #set($alarmName = "Power On")
+#elseif($alarmName == "door")
+ #set($alarmName = "Door")
+#elseif($alarmName == "lock")
+ #set($alarmName = "Lock")
+#elseif($alarmName == "unlock")
+ #set($alarmName = "Unlock")
+#elseif($alarmName == "geofence")
+ #set($alarmName = "Geofence")
+#elseif($alarmName == "geofenceEnter")
+ #set($alarmName = "Geofence Enter")
+#elseif($alarmName == "geofenceExit")
+ #set($alarmName = "Geofence Exit")
+#elseif($alarmName == "gpsAntennaCut")
+ #set($alarmName = "GPS Antenna Cut")
+#elseif($alarmName == "accident")
+ #set($alarmName = "Accident")
+#elseif($alarmName == "tow")
+ #set($alarmName = "Tow")
+#elseif($alarmName == "idle")
+ #set($alarmName = "Idle")
+#elseif($alarmName == "highRpm")
+ #set($alarmName = "High RPM")
+#elseif($alarmName == "hardAcceleration")
+ #set($alarmName = "Hard Acceleration")
+#elseif($alarmName == "hardBraking")
+ #set($alarmName = "Hard Braking")
+#elseif($alarmName == "hardCornering")
+ #set($alarmName = "Hard Cornering")
+#elseif($alarmName == "laneChange")
+ #set($alarmName = "Lane Change")
+#elseif($alarmName == "fatigueDriving")
+ #set($alarmName = "Fatigue Driving")
+#elseif($alarmName == "powerCut")
+ #set($alarmName = "Power Cut")
+#elseif($alarmName == "powerRestored")
+ #set($alarmName = "Power Restored")
+#elseif($alarmName == "jamming")
+ #set($alarmName = "Jamming")
+#elseif($alarmName == "temperature")
+ #set($alarmName = "Temperature")
+#elseif($alarmName == "parking")
+ #set($alarmName = "Parking")
+#elseif($alarmName == "bonnet")
+ #set($alarmName = "Bonnet")
+#elseif($alarmName == "footBrake")
+ #set($alarmName = "Foot Brake")
+#elseif($alarmName == "fuelLeak")
+ #set($alarmName = "Fuel Leak")
+#elseif($alarmName == "tampering")
+ #set($alarmName = "Tampering")
+#elseif($alarmName == "removing")
+ #set($alarmName = "Removing")
+#end
<!DOCTYPE html>
<html>
<body>
Device: $device.name<br>
-Alarm: $position.getString("alarm")<br>
+Alarm: $alarmName<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $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>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/commandResult.vm b/templates/full/commandResult.vm
index c5ceffab0..c3b62edf5 100644
--- a/templates/full/commandResult.vm
+++ b/templates/full/commandResult.vm
@@ -5,6 +5,8 @@
Device: $device.name<br>
Result: $position.getString("result")<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)<br>
-Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
+Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a><br>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/deviceFuelDrop.vm b/templates/full/deviceFuelDrop.vm
index a50e8ca38..3fb9aa63c 100644
--- a/templates/full/deviceFuelDrop.vm
+++ b/templates/full/deviceFuelDrop.vm
@@ -5,5 +5,7 @@
Device: $device.name<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $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>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/deviceFuelIncrease.vm b/templates/full/deviceFuelIncrease.vm
new file mode 100644
index 000000000..9d4474e1a
--- /dev/null
+++ b/templates/full/deviceFuelIncrease.vm
@@ -0,0 +1,11 @@
+#set($subject = "$device.name: fuel increase")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $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>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
+</body>
+</html>
diff --git a/templates/full/deviceInactive.vm b/templates/full/deviceInactive.vm
index 51aead653..01fa319b5 100644
--- a/templates/full/deviceInactive.vm
+++ b/templates/full/deviceInactive.vm
@@ -7,6 +7,8 @@
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>
+Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a><br>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/deviceMoving.vm b/templates/full/deviceMoving.vm
index 37f3c2a93..e3941b324 100644
--- a/templates/full/deviceMoving.vm
+++ b/templates/full/deviceMoving.vm
@@ -6,5 +6,7 @@ Device: $device.name<br>
Moving<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $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>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/deviceOffline.vm b/templates/full/deviceOffline.vm
index c832ee553..6d2122624 100644
--- a/templates/full/deviceOffline.vm
+++ b/templates/full/deviceOffline.vm
@@ -5,6 +5,7 @@
Device: $device.name<br>
Offline<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)<br>
-Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/deviceOnline.vm b/templates/full/deviceOnline.vm
index fd17edef0..02260c4fb 100644
--- a/templates/full/deviceOnline.vm
+++ b/templates/full/deviceOnline.vm
@@ -5,6 +5,7 @@
Device: $device.name<br>
Online<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)<br>
-Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/deviceOverspeed.vm b/templates/full/deviceOverspeed.vm
index f796881a0..5f38b3f88 100644
--- a/templates/full/deviceOverspeed.vm
+++ b/templates/full/deviceOverspeed.vm
@@ -15,5 +15,7 @@ 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.eventTime, $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>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/deviceStopped.vm b/templates/full/deviceStopped.vm
index 9e1e47d12..e3246b277 100644
--- a/templates/full/deviceStopped.vm
+++ b/templates/full/deviceStopped.vm
@@ -6,5 +6,7 @@ Device: $device.name<br>
Stopped<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $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>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/deviceUnknown.vm b/templates/full/deviceUnknown.vm
index 34b3a7795..e99981069 100644
--- a/templates/full/deviceUnknown.vm
+++ b/templates/full/deviceUnknown.vm
@@ -5,6 +5,7 @@
Device: $device.name<br>
Status is unknown<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)<br>
-Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/driverChanged.vm b/templates/full/driverChanged.vm
index e370d3eea..f9b6d0ae2 100644
--- a/templates/full/driverChanged.vm
+++ b/templates/full/driverChanged.vm
@@ -5,6 +5,8 @@
Device: $device.name<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $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}
+Driver: #{if}($driver)$driver.name#{else}$event.getString("driverUniqueId")#{end}<br>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/geofenceEnter.vm b/templates/full/geofenceEnter.vm
index 9e00cb388..5ae14a8d3 100644
--- a/templates/full/geofenceEnter.vm
+++ b/templates/full/geofenceEnter.vm
@@ -6,5 +6,7 @@ Device: $device.name<br>
Has entered geofence: $geofence.name<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $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>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/geofenceExit.vm b/templates/full/geofenceExit.vm
index c3a300f37..08887a93a 100644
--- a/templates/full/geofenceExit.vm
+++ b/templates/full/geofenceExit.vm
@@ -6,5 +6,7 @@ Device: $device.name<br>
Has exited geofence: $geofence.name<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $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>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/ignitionOff.vm b/templates/full/ignitionOff.vm
index 8a546ed29..a43e4aabb 100644
--- a/templates/full/ignitionOff.vm
+++ b/templates/full/ignitionOff.vm
@@ -6,5 +6,7 @@ Device: $device.name<br>
Ignition OFF<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $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>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/ignitionOn.vm b/templates/full/ignitionOn.vm
index 9ae9a63e7..1ba9ef030 100644
--- a/templates/full/ignitionOn.vm
+++ b/templates/full/ignitionOn.vm
@@ -6,5 +6,7 @@ Device: $device.name<br>
Ignition ON<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $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>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/maintenance.vm b/templates/full/maintenance.vm
index 612a675f8..39ccb21bc 100644
--- a/templates/full/maintenance.vm
+++ b/templates/full/maintenance.vm
@@ -6,5 +6,7 @@ Device: $device.name<br>
Maintenance is required: $maintenance.name<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $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>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/full/media.vm b/templates/full/media.vm
new file mode 100644
index 000000000..1c94265fb
--- /dev/null
+++ b/templates/full/media.vm
@@ -0,0 +1,13 @@
+#set($subject = "$device.name: media file received")
+<!DOCTYPE html>
+<html>
+<body>
+Device: $device.name<br>
+Type: $event.getString("media")<br>
+File: <a href="$webUrl/api/media/$device.uniqueId/$event.getString("file")">$event.getString("file")</a><br>
+Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)<br>
+Link: <a href="$webUrl?eventId=$event.id">$webUrl?eventId=$event.id</a><br>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
+</body>
+</html>
diff --git a/templates/full/passwordReset.vm b/templates/full/passwordReset.vm
index fe692ba1d..d380790dc 100644
--- a/templates/full/passwordReset.vm
+++ b/templates/full/passwordReset.vm
@@ -3,6 +3,6 @@
<html>
<body>
To reset password please click on the following link:<br>
-<a href="$webUrl?passwordReset=$token">$webUrl?passwordReset=$token</a><br>
+<a href="$webUrl/reset-password?passwordReset=$token">$webUrl/reset-password?passwordReset=$token</a><br>
</body>
</html>
diff --git a/templates/full/test.vm b/templates/full/test.vm
index 93cbdc549..41e2f3ebd 100644
--- a/templates/full/test.vm
+++ b/templates/full/test.vm
@@ -4,4 +4,4 @@
<body>
Test message
</body>
-</html>
+</html>
diff --git a/templates/full/textMessage.vm b/templates/full/textMessage.vm
index a20dddbe0..fb20275e3 100644
--- a/templates/full/textMessage.vm
+++ b/templates/full/textMessage.vm
@@ -3,7 +3,9 @@
<html>
<body>
Device: $device.name<br>
-Message: $event.getString("message")<br>
+Message: $event.getString("message")<br>
Time: $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)<br>
+<br>
+<a href="$webUrl/settings/notifications?token=$token">Unsubscribe</a>
</body>
-</html>
+</html>
diff --git a/templates/short/alarm.vm b/templates/short/alarm.vm
index 15970dab8..effcb8f15 100644
--- a/templates/short/alarm.vm
+++ b/templates/short/alarm.vm
@@ -1,2 +1,80 @@
#set($subject = "$device.name: alarm!")
-$device.name alarm: $position.getString("alarm") at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)
+#set($alarmName = $position.getString("alarm"))
+#if( $alarmName == "general")
+ #set($alarmName = "General")
+#elseif($alarmName == "sos")
+ #set($alarmName = "SOS")
+#elseif($alarmName == "vibration")
+ #set($alarmName = "Vibration")
+#elseif($alarmName == "movement")
+ #set($alarmName = "Movement")
+#elseif($alarmName == "lowspeed")
+ #set($alarmName = "Low Speed")
+#elseif($alarmName == "overspeed")
+ #set($alarmName = "Overspeed")
+#elseif($alarmName == "fallDown")
+ #set($alarmName = "Fall Down")
+#elseif($alarmName == "lowPower")
+ #set($alarmName = "Low Power")
+#elseif($alarmName == "lowBattery")
+ #set($alarmName = "Low Battery")
+#elseif($alarmName == "fault")
+ #set($alarmName = "Fault")
+#elseif($alarmName == "powerOff")
+ #set($alarmName = "Power Off")
+#elseif($alarmName == "powerOn")
+ #set($alarmName = "Power On")
+#elseif($alarmName == "door")
+ #set($alarmName = "Door")
+#elseif($alarmName == "lock")
+ #set($alarmName = "Lock")
+#elseif($alarmName == "unlock")
+ #set($alarmName = "Unlock")
+#elseif($alarmName == "geofence")
+ #set($alarmName = "Geofence")
+#elseif($alarmName == "geofenceEnter")
+ #set($alarmName = "Geofence Enter")
+#elseif($alarmName == "geofenceExit")
+ #set($alarmName = "Geofence Exit")
+#elseif($alarmName == "gpsAntennaCut")
+ #set($alarmName = "GPS Antenna Cut")
+#elseif($alarmName == "accident")
+ #set($alarmName = "Accident")
+#elseif($alarmName == "tow")
+ #set($alarmName = "Tow")
+#elseif($alarmName == "idle")
+ #set($alarmName = "Idle")
+#elseif($alarmName == "highRpm")
+ #set($alarmName = "High RPM")
+#elseif($alarmName == "hardAcceleration")
+ #set($alarmName = "Hard Acceleration")
+#elseif($alarmName == "hardBraking")
+ #set($alarmName = "Hard Braking")
+#elseif($alarmName == "hardCornering")
+ #set($alarmName = "Hard Cornering")
+#elseif($alarmName == "laneChange")
+ #set($alarmName = "Lane Change")
+#elseif($alarmName == "fatigueDriving")
+ #set($alarmName = "Fatigue Driving")
+#elseif($alarmName == "powerCut")
+ #set($alarmName = "Power Cut")
+#elseif($alarmName == "powerRestored")
+ #set($alarmName = "Power Restored")
+#elseif($alarmName == "jamming")
+ #set($alarmName = "Jamming")
+#elseif($alarmName == "temperature")
+ #set($alarmName = "Temperature")
+#elseif($alarmName == "parking")
+ #set($alarmName = "Parking")
+#elseif($alarmName == "bonnet")
+ #set($alarmName = "Bonnet")
+#elseif($alarmName == "footBrake")
+ #set($alarmName = "Foot Brake")
+#elseif($alarmName == "fuelLeak")
+ #set($alarmName = "Fuel Leak")
+#elseif($alarmName == "tampering")
+ #set($alarmName = "Tampering")
+#elseif($alarmName == "removing")
+ #set($alarmName = "Removing")
+#end
+$device.name alarm: $alarmName at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)
diff --git a/templates/short/deviceFuelIncrease.vm b/templates/short/deviceFuelIncrease.vm
new file mode 100644
index 000000000..6a11418b1
--- /dev/null
+++ b/templates/short/deviceFuelIncrease.vm
@@ -0,0 +1,2 @@
+#set($subject = "$device.name: fuel increase")
+$device.name fuel increase at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)
diff --git a/templates/short/media.vm b/templates/short/media.vm
new file mode 100644
index 000000000..783636f3f
--- /dev/null
+++ b/templates/short/media.vm
@@ -0,0 +1,2 @@
+#set($subject = "$device.name: media file received")
+$device.name $event.getString("media") received: $event.getString("file") at $dateTool.format("YYYY-MM-dd HH:mm:ss", $event.eventTime, $locale, $timezone)