From 33c609645c326362e2ceaf28d156cc68373788ef Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Mon, 29 Jan 2024 02:08:44 +1000 Subject: [PATCH] move answers --- templates/i-posts.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/templates/i-posts.html b/templates/i-posts.html index 79c1d5b..c8b55ce 100644 --- a/templates/i-posts.html +++ b/templates/i-posts.html @@ -51,6 +51,23 @@
+
+ + {% if posto.answers_list[0] | length > 0 %} +

Ответы:

+ {% for ans in posto.answers_list[0] %} + {% if (posto.answers_list[1])[loop.index-1] > 0 %} + {% if (posto.answers_list[2])[loop.index-1] > 0 %} + >>{{ (posto.answers_list[0])[loop.index-1] }} (ответов {{ (posto.answers_list[1])[loop.index-1] }}, длина {{ (posto.answers_list[2])[loop.index-1] }}), + {% else %} + >>{{ (posto.answers_list[0])[loop.index-1] }} (ответов {{ (posto.answers_list[1])[loop.index-1] }}), + {% endif %} + {% else %} + >>{{ (posto.answers_list[0])[loop.index-1] }}, + {% endif %} + {% endfor %} + {% endif %} +
Ответить этому.