You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
326 B
Smarty
14 lines
326 B
Smarty
{% for message in messages -%}
|
|
{%- set content = message.content -%}
|
|
From {{ message.sender }}
|
|
Date {{ message.timestamp }}
|
|
{% if content.msgtype == 'm.text' %}
|
|
{{ content.body }}
|
|
{%- elif content.msgtype == 'm.image' -%}
|
|
Image: {{ content.url }}
|
|
{%- else -%}
|
|
Unknown type: {{ content.msgtype }}
|
|
{%- endif %}
|
|
---
|
|
{% endfor %}
|