From ca0a09c7baf65f8199896ba36342edf655d22dd5 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sat, 3 Aug 2024 12:39:53 +0300 Subject: [PATCH] Update template --- templates/new_post.html.j2 | 60 +++++++++++++++++++++++++++++++++++--- 1 file changed, 56 insertions(+), 4 deletions(-) diff --git a/templates/new_post.html.j2 b/templates/new_post.html.j2 index da516cc..7b95857 100644 --- a/templates/new_post.html.j2 +++ b/templates/new_post.html.j2 @@ -25,6 +25,13 @@ } + {% if data['url'] != "" %} + +
+ Post original page +
+ {% endif %} +
@@ -63,9 +70,58 @@
{% endfor %} {% endif %} + {% if data['reply'] %} + +
+
+ Reply original page +
+ +
+ + {{ data['reply']['account']['display_name'] }} avatar image + {{ data['reply']['account']['display_name'] }} ({{ data['reply']['account']['username'] }}) + +
+ +
+ {{ data['reply']['created_at'] }} +
+ +
+ +
+ {{ data['reply']['spoiler'] }} +
+ +
+ {{ data['reply']['content'] }} + + {% if data['reply']['media_attachments'] %} + {% for media in data['reply']['media_attachments'] %} + {% if media['type'] == 'image' %} + {{ media['description'] }} + {% elif media['type'] == 'video' %} + + {% elif media['type'] == 'audio' %} + + Download audio + {% endif %} + {% endfor %} + {% endif %} +
+
+
+ {% endif %} {% if data['reblog'] %}
+
+ Reply original page +
@@ -108,10 +164,6 @@ {% endif %}
- -
- Post original page -
{# {{ data['card'] }} #}