diff --git a/templates/i-posts.html b/templates/i-posts.html index a7a1d2d..2bdfe06 100644 --- a/templates/i-posts.html +++ b/templates/i-posts.html @@ -35,7 +35,11 @@

Ответы:

{% for ans in posto.answers_list[0] %} - >>{{ (posto.answers_list[0])[loop.index-1] }} (ответов {{ (posto.answers_list[1])[loop.index-1] }}) + {% if (posto.answers_list[1])[loop.index-1] > 0 %} + >>{{ (posto.answers_list[0])[loop.index-1] }} (ответов {{ (posto.answers_list[1])[loop.index-1] }}) + {% else %} + >>{{ (posto.answers_list[0])[loop.index-1] }} + {% endif %} {% endfor %}
{% endif %}