forked from mirrors/bookwyrm
21a954c7df
Plus some other shifting around
32 lines
1,020 B
HTML
32 lines
1,020 B
HTML
{% extends 'feed/layout.html' %}
|
|
{% load i18n %}
|
|
{% block panel %}
|
|
|
|
<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 %}
|
|
{% trans "Direct Messages" %}
|
|
{% endif %}
|
|
</h1>
|
|
{% 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 %}
|
|
</header>
|
|
|
|
<div class="box">
|
|
{% include 'snippets/create_status/status.html' with type="direct" uuid=1 mention=partner %}
|
|
</div>
|
|
|
|
<section class="block">
|
|
{% if not activities %}
|
|
<p>{% trans "You have no messages right now." %}</p>
|
|
{% endif %}
|
|
{% for activity in activities %}
|
|
<div class="block">
|
|
{% include 'snippets/status/status.html' with status=activity %}
|
|
</div>
|
|
{% endfor %}
|
|
|
|
</section>
|
|
|
|
{% endblock %}
|