~tsileo/microblog.pub

ecada8480e740e350c5def4ce775bcdf12ef7ad3 — Thomas Sileo 8 months ago 25d5ad2
Add missing template for the new DMs section
1 files changed, 20 insertions(+), 0 deletions(-)

A templates/direct_messages.html
A templates/direct_messages.html => templates/direct_messages.html +20 -0
@@ 0,0 1,20 @@
{% extends "layout.html" %}
{% import 'utils.html' as utils %}
{% block title %}DMs - {{ config.NAME }}{% endblock %}
{% block header %}

{% endblock %}
{% block content %}
<div id="container">
<div id="direct_messages" style="margin-top:50px;">

    {% for thread in threads %}
    <h4><a href="/admin/thread?oid={{thread.oid}}">With {{ ", ".join(thread.participants) }}</a>
        <small class="lcolor">{{ thread.len }} message{% if thread.len > 1 %}s{% endif %}</small>
    </h4>
	{{ utils.display_note(thread.last_reply.activity.object, meta=thread.last_reply.meta) }}
    {% endfor %}

</div>
</div>
{% endblock %}