re ans-post
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2024-01-30 00:19:43 +10:00
parent 9e90bd2458
commit 92bb87c816

View File

@ -9,7 +9,7 @@
<div class="card-content white-text"> <div class="card-content white-text">
<span class="new badge green" data-badge-caption=""> <span class="new badge green" data-badge-caption="">
<a href="#post-{{ posto._key }}"> #{{ posto._key }} </a> <a class="orange-text" href="#post-{{ posto._key }}"> #{{ posto._key }} </a>
</span> </span>
<span class="new badge blue" data-badge-caption="">Ответов: {{ posto.answers_num }}</span> <span class="new badge blue" data-badge-caption="">Ответов: {{ posto.answers_num }}</span>
<span class="new badge red" data-badge-caption="">Длина треда: {{ posto.children_num }}</span> <span class="new badge red" data-badge-caption="">Длина треда: {{ posto.children_num }}</span>
@ -33,7 +33,7 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
<div class="col s8"> <!-- <div class="col s8">
<div class="card-content white-text"> <div class="card-content white-text">
<span class="card-title">#{{ posto._key }} <span class="card-title">#{{ posto._key }}
<span class="new badge blue" data-badge-caption="">Ответов: {{ posto.answers_num }}</span> <span class="new badge blue" data-badge-caption="">Ответов: {{ posto.answers_num }}</span>
@ -44,26 +44,8 @@
<a class="link orange-text purple" href="#post-{{ posto.parent_post }}"> >>{{ posto.parent_post }} </a> <a class="link orange-text purple" href="#post-{{ posto.parent_post }}"> >>{{ posto.parent_post }} </a>
{% endif %} {% endif %}
<p>{{ posto.texto }}</p> <p>{{ posto.texto }}</p>
<!-- {% if posto.answers_list[0] | length > 0 %}
<br>
<p>Ответы:</p>
<div class="collection">
{% 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 %}
<a href="#post-{{ (posto.answers_list[0])[loop.index-1] }}" class="collection-item" style="padding: 2px 2px;">>>{{ (posto.answers_list[0])[loop.index-1] }} (ответов {{ (posto.answers_list[1])[loop.index-1] }}, длина {{ (posto.answers_list[2])[loop.index-1] }})</a>
{% else %}
<a href="#post-{{ (posto.answers_list[0])[loop.index-1] }}" class="collection-item" style="padding: 2px 2px;">>>{{ (posto.answers_list[0])[loop.index-1] }} (ответов {{ (posto.answers_list[1])[loop.index-1] }})</a>
{% endif %}
{% else %}
<a href="#post-{{ (posto.answers_list[0])[loop.index-1] }}" class="collection-item" style="padding: 2px 2px;">>>{{ (posto.answers_list[0])[loop.index-1] }}</a>
{% endif %}
{% endfor %}
</div>
{% endif %} -->
</div>
</div> </div>
</div> -->
<div class="col s12"> <div class="col s12">
<div class="card-action right"> <div class="card-action right">
<!-- <a href="#" hx-post="/post_my_post/{{ posto._key }}" hx-target="#neu-posts" >Answer me!</a> --> <!-- <a href="#" hx-post="/post_my_post/{{ posto._key }}" hx-target="#neu-posts" >Answer me!</a> -->