mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
mod/notification-matrix: format date & time italic
This commit is contained in:
parent
755db5d66d
commit
e7cdb2d7f4
1 changed files with 6 additions and 5 deletions
|
@ -139,11 +139,12 @@
|
||||||
:if ([ :typeof $MatrixQueue ] = "nothing") do={
|
:if ([ :typeof $MatrixQueue ] = "nothing") do={
|
||||||
:set MatrixQueue ({});
|
:set MatrixQueue ({});
|
||||||
}
|
}
|
||||||
:local Text ([ $SymbolForNotification "alarm-clock" ] . \
|
:local Symbol [ $SymbolForNotification "alarm-clock" ];
|
||||||
"This message was queued since " . [ /system/clock/get date ] . \
|
:local DateTime ([ /system/clock/get date ] . " " . [ /system/clock/get time ]);
|
||||||
" " . [ /system/clock/get time ] . " and may be obsolete.");
|
:set Plain ($Plain . "\n" . $Symbol . "This message was queued since *" . \
|
||||||
:set Plain ($Plain . "\n" . $Text);
|
$DateTime . "* and may be obsolete.");
|
||||||
:set Formatted ($Formatted . "<br/>" . $Text);
|
:set Formatted ($Formatted . "<br/>" . $Symbol . "This message was queued since <em>" . \
|
||||||
|
$DateTime . "</em> and may be obsolete.");
|
||||||
:set ($MatrixQueue->[ :len $MatrixQueue ]) { headers=$Headers; \
|
:set ($MatrixQueue->[ :len $MatrixQueue ]) { headers=$Headers; \
|
||||||
accesstoken=$AccessToken; homeserver=$HomeServer; room=$Room; \
|
accesstoken=$AccessToken; homeserver=$HomeServer; room=$Room; \
|
||||||
plain=$Plain; formatted=$Formatted };
|
plain=$Plain; formatted=$Formatted };
|
||||||
|
|
Loading…
Reference in a new issue