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 @@
Ответы:
+ {% 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 %} +