From c77d6a4d4a1d628788be73491aa7fa4e4fdcff05 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Fri, 30 Jul 2021 18:35:08 +0000 Subject: Add templates Rather than using jsonify on a dict, the system now uses render_template on json documents. This gives the ability to extend previous files (which might be useful for activitypub features), and also enables using different templates for different filetypes. Supplied are templates for accessing inboxes and outboxes in JSON-LD and HTML. The "items" field in get_user_inbox_page.json and get_user_outbox_page.json might be currently borked. --- sw/templates/get_user_outbox.html | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 sw/templates/get_user_outbox.html (limited to 'sw/templates/get_user_outbox.html') diff --git a/sw/templates/get_user_outbox.html b/sw/templates/get_user_outbox.html new file mode 100644 index 0000000..9f4d893 --- /dev/null +++ b/sw/templates/get_user_outbox.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% block header %} +
{{ user["outbox_size"] }} items
+ + +{% endblock %} -- cgit v1.2.1