[mod] Termin-Beschreibung mit anzeigen
This commit is contained in:
parent
0ac13808c5
commit
a824b97626
|
@ -125,6 +125,7 @@ namespace _munin.sources.ical_feed
|
||||||
"title": vevent.summary,
|
"title": vevent.summary,
|
||||||
"begin": begin,
|
"begin": begin,
|
||||||
"end": end,
|
"end": end,
|
||||||
|
"description": (vevent.description ?? null),
|
||||||
"location": (vevent.location ?? null),
|
"location": (vevent.location ?? null),
|
||||||
"tags": vevent.categories,
|
"tags": vevent.categories,
|
||||||
};
|
};
|
||||||
|
|
|
@ -73,7 +73,7 @@ namespace _munin.targets.email
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
lib_plankton.string.coin(
|
lib_plankton.string.coin(
|
||||||
"{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}",
|
"{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}{{macro_description}}",
|
||||||
{
|
{
|
||||||
"title_label": labels.title.toUpperCase(),
|
"title_label": labels.title.toUpperCase(),
|
||||||
"macro_tags": (
|
"macro_tags": (
|
||||||
|
@ -105,6 +105,18 @@ namespace _munin.targets.email
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
"macro_description": (
|
||||||
|
(event.description === null)
|
||||||
|
?
|
||||||
|
""
|
||||||
|
:
|
||||||
|
lib_plankton.string.coin(
|
||||||
|
"\n\n{{description_value}}",
|
||||||
|
{
|
||||||
|
"description_value": event.description,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
|
@ -43,7 +43,7 @@ namespace _munin.targets.telegram_bot
|
||||||
parameters.bot_token,
|
parameters.bot_token,
|
||||||
parameters.chat_id,
|
parameters.chat_id,
|
||||||
lib_plankton.string.coin(
|
lib_plankton.string.coin(
|
||||||
"*{{head}}*\n\n\{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}",
|
"*{{head}}*\n\n\{{title_label}} | {{macro_tags}}{{title_value}}\n{{time_label}} | {{time_value}}{{macro_location}}{{macro_description}}",
|
||||||
{
|
{
|
||||||
"head": labels.head,
|
"head": labels.head,
|
||||||
"macro_tags": (
|
"macro_tags": (
|
||||||
|
@ -76,6 +76,18 @@ namespace _munin.targets.telegram_bot
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
"macro_description": (
|
||||||
|
(event.description === null)
|
||||||
|
?
|
||||||
|
""
|
||||||
|
:
|
||||||
|
lib_plankton.string.coin(
|
||||||
|
"\n\n{{description_value}}",
|
||||||
|
{
|
||||||
|
"description_value": event.description,
|
||||||
|
}
|
||||||
|
)
|
||||||
|
),
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,6 +37,7 @@ namespace _munin
|
||||||
title : string;
|
title : string;
|
||||||
begin : lib_plankton.pit.type_datetime,
|
begin : lib_plankton.pit.type_datetime,
|
||||||
end : (null | lib_plankton.pit.type_datetime),
|
end : (null | lib_plankton.pit.type_datetime),
|
||||||
|
description : (null | string);
|
||||||
location : (null | string);
|
location : (null | string);
|
||||||
tags : (null | Array<string>);
|
tags : (null | Array<string>);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue