moviewyrm/bookwyrm/templates/feed/direct_messages.html

33 lines
1 KiB
HTML
Raw Normal View History

{% extends '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">
<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" %}
{% endif %}
</h1>
2021-05-04 16:34:16 +00:00
{% if partner %}<p class="subtitle"><a href="{% url '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">
2021-09-18 23:28:38 +00:00
{% include 'snippets/create_status/status.html' with type="direct" uuid=1 mention=partner no_script=True %}
2021-01-29 19:44:04 +00:00
</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 %}