2021-01-29 18:25:31 +00:00
{% extends 'feed/feed_layout.html' %}
2021-02-28 02:48:10 +00:00
{% load i18n %}
2021-01-29 18:25:31 +00:00
{% block panel %}
2020-12-14 00:16:12 +00:00
2021-01-29 19:44:04 +00:00
< header class = "block" >
2021-02-28 18:00:36 +00:00
< h1 class = "title" >
{% if partner %}
{% blocktrans with username=partner.display_name path=partner.local_path %}Direct Messages with < a href = "{{ path }}" > {{ username }}< / a > {% endblocktrans %}
{% else %}
2021-02-28 18:09:56 +00:00
{% trans "Direct Messages" %}
2021-02-28 18:00:36 +00:00
{% endif %}
< / h1 >
2021-02-28 02:48:10 +00:00
{% if partner %}< p class = "subtitle" > < a href = "/direct-messages" > < span class = "icon icon-arrow-left" aria-hidden = "true" > < / span > {% trans "All messages" %}< / a > < / p > {% endif %}
2021-01-29 19:44:04 +00:00
< / header >
2020-12-14 00:16:12 +00:00
2021-01-29 19:44:04 +00:00
< div class = "box" >
{% include 'snippets/create_status_form.html' with type="direct" uuid=1 mentions=partner %}
< / div >
2020-12-14 00:16:12 +00:00
2021-01-29 19:44:04 +00:00
< section class = "block" >
{% if not activities %}
2021-02-28 02:48:10 +00:00
< p > {% trans "You have no messages right now." %}< / p >
2021-01-29 19:44:04 +00:00
{% endif %}
{% for activity in activities %}
< div class = "block" >
2021-02-23 21:34:16 +00:00
{% include 'snippets/status/status.html' with status=activity %}
2021-01-29 19:44:04 +00:00
< / div >
{% endfor %}
2021-01-29 19:14:18 +00:00
2021-01-29 19:44:04 +00:00
< / section >
2020-12-14 00:16:12 +00:00
{% endblock %}