mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-07-13 19:44:30 +02:00
mod/notification-matrix: string protocol for display
This commit is contained in:
parent
6fd0becf64
commit
8cd03167ca
1 changed files with 4 additions and 2 deletions
|
@ -76,6 +76,7 @@
|
||||||
:global EitherOr;
|
:global EitherOr;
|
||||||
:global FetchUserAgentStr;
|
:global FetchUserAgentStr;
|
||||||
:global LogPrint;
|
:global LogPrint;
|
||||||
|
:global ProtocolStrip;
|
||||||
:global SymbolForNotification;
|
:global SymbolForNotification;
|
||||||
|
|
||||||
:local PrepareText do={
|
:local PrepareText do={
|
||||||
|
@ -117,11 +118,12 @@
|
||||||
($Notification->"subject")) ] . "</h2>" . "<pre><code>" . \
|
($Notification->"subject")) ] . "</h2>" . "<pre><code>" . \
|
||||||
[ $PrepareText ($Notification->"message") ] . "</code></pre>");
|
[ $PrepareText ($Notification->"message") ] . "</code></pre>");
|
||||||
:if ([ :len ($Notification->"link") ] > 0) do={
|
:if ([ :len ($Notification->"link") ] > 0) do={
|
||||||
|
:local Label [ $ProtocolStrip ($Notification->"link") ];
|
||||||
:set Plain ($Plain . "\n" . [ $SymbolForNotification "link" ] . \
|
:set Plain ($Plain . "\n" . [ $SymbolForNotification "link" ] . \
|
||||||
"[" . $Notification->"link" . "](" . $Notification->"link" . ")");
|
"[" . $Label . "](" . $Notification->"link" . ")");
|
||||||
:set Formatted ($Formatted . "<br/>" . [ $SymbolForNotification "link" ] . \
|
:set Formatted ($Formatted . "<br/>" . [ $SymbolForNotification "link" ] . \
|
||||||
"<a href=\"" . [ $PrepareText ($Notification->"link") ] . "\">" . \
|
"<a href=\"" . [ $PrepareText ($Notification->"link") ] . "\">" . \
|
||||||
[ $PrepareText ($Notification->"link") ] . "</a>");
|
[ $PrepareText $Label ] . "</a>");
|
||||||
}
|
}
|
||||||
|
|
||||||
:do {
|
:do {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue