PopovDanil's picture
try 1
48ec4db
raw
history blame contribute delete
803 Bytes
<!-- All the data is accessible via context -->
<div>
{% if context.user.role == "guest" %}
<p>Hello, guest!</p>
{% else %}
<p>Hello, {{ context.user.instance.email }}</p>
{% endif %}
<p>Today</p>
<ul>
{% for chat in context.chats.today %}
<li>{{ chat.title }}</li>
{% endfor %}
</ul>
<p>Last week</p>
<ul>
{% for chat in context.chats.last_week %}
<li>{{ chat.title }}</li>
{% endfor %}
</ul>
<p>Last month</p>
<ul>
{% for chat in context.chats.last_month %}
<li>{{ chat.title }}</li>
{% endfor %}
</ul>
<p>Later</p>
<ul>
{% for chat in context.chats.other %}
<li>{{ chat.title }}</li>
{% endfor %}
</ul>
</div>