From ecada8480e740e350c5def4ce775bcdf12ef7ad3 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 27 Oct 2019 14:14:13 +0100 Subject: [PATCH] Add missing template for the new DMs section --- templates/direct_messages.html | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 templates/direct_messages.html diff --git a/templates/direct_messages.html b/templates/direct_messages.html new file mode 100644 index 0000000..c7e558e --- /dev/null +++ b/templates/direct_messages.html @@ -0,0 +1,20 @@ +{% extends "layout.html" %} +{% import 'utils.html' as utils %} +{% block title %}DMs - {{ config.NAME }}{% endblock %} +{% block header %} + +{% endblock %} +{% block content %} +
+
+ + {% for thread in threads %} +

With {{ ", ".join(thread.participants) }} + {{ thread.len }} message{% if thread.len > 1 %}s{% endif %} +

+ {{ utils.display_note(thread.last_reply.activity.object, meta=thread.last_reply.meta) }} + {% endfor %} + +
+
+{% endblock %}