add (translated) templates
This commit is contained in:
parent
528e81a4b4
commit
8eee7cb991
18 changed files with 231 additions and 0 deletions
22
notif.html
Normal file
22
notif.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
{%- for message in notif.messages %}
|
||||
{%- if message.event_type == "m.room.encrypted" %}
|
||||
Eine verschlüsselte Nachricht.
|
||||
{%- elif message.event_type == "m.room.message" %}
|
||||
{%- if message.msgtype == "m.emote" %}* {%- endif %}{{ message.sender_name }} ({{ message.ts|format_ts("%H:%M") }})
|
||||
{%- if message.msgtype == "m.text" %}
|
||||
{{ message.body_text_plain }}
|
||||
{%- elif message.msgtype == "m.emote" %}
|
||||
{{ message.body_text_plain }}
|
||||
{%- elif message.msgtype == "m.notice" %}
|
||||
{{ message.body_text_plain }}
|
||||
{%- elif message.msgtype == "m.image" %}
|
||||
{{ message.body_text_plain }}
|
||||
{%- elif message.msgtype == "m.file" %}
|
||||
{{ message.body_text_plain }}
|
||||
{%- else %}
|
||||
Eine Nachricht mit unbekanntem Inhalt.
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- endfor %}
|
||||
|
||||
Öffne {{ room.title }} mit folgendem Link: {{ notif.link }}
|
Loading…
Add table
Add a link
Reference in a new issue