From 35f60676de2d86429b4f873122aeede04e6224a1 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Fri, 2 Aug 2024 19:31:15 +0300 Subject: [PATCH] Improve template --- .../templates/new_post.html.j2 | 43 ++++++++++++------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/mastodon_email_bridge/templates/new_post.html.j2 b/mastodon_email_bridge/templates/new_post.html.j2 index 6bc62fa..da516cc 100644 --- a/mastodon_email_bridge/templates/new_post.html.j2 +++ b/mastodon_email_bridge/templates/new_post.html.j2 @@ -4,27 +4,44 @@
- {{ data['account']['display_name'] }} avatar image -
- {{ data['account']['display_name'] }} ({{ data['account']['username'] }}) + + {{ data['account']['display_name'] }} avatar image + {{ data['account']['display_name'] }} ({{ data['account']['username'] }}) +
{{ data['created_at'] }}
-
+
{{ data['spoiler'] }}
-
{{ data['content'] }} @@ -51,21 +68,21 @@
- {{ data[ -
- {{ data['reblog']['account']['display_name'] }} ({{ data['reblog']['account']['username'] }}) + + {{ data['reblog']['account']['display_name'] }} avatar image + {{ data['reblog']['account']['display_name'] }} ({{ data['reblog']['account']['username'] }}) +
{{ data['reblog']['created_at'] }}
-
+
{{ data['reblog']['spoiler'] }}
-
{{ data['reblog']['content'] }} @@ -96,12 +113,8 @@ Post original page
{# {{ data['card'] }} #} -
-
-
-
-
+
Raw JSON data:
{{ json_raw }}