This commit is contained in:
parent
24f294bad1
commit
0b9f373486
@ -35,7 +35,11 @@
|
||||
<p>Ответы:</p>
|
||||
<div class="collection">
|
||||
{% for ans in posto.answers_list[0] %}
|
||||
{% if (posto.answers_list[1])[loop.index-1] > 0 %}
|
||||
<a href="#post-{{ (posto.answers_list[0])[loop.index-1] }}" class="collection-item">>>{{ (posto.answers_list[0])[loop.index-1] }} (ответов {{ (posto.answers_list[1])[loop.index-1] }})</a>
|
||||
{% else %}
|
||||
<a href="#post-{{ (posto.answers_list[0])[loop.index-1] }}" class="collection-item">>>{{ (posto.answers_list[0])[loop.index-1] }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user