2023-07-13 19:59:56 +10:00
|
|
|
{% if postos | length > 0 %}
|
2023-07-14 13:19:50 +10:00
|
|
|
{% for posto in postos %}
|
2023-07-16 02:35:06 +10:00
|
|
|
<div class=" ">
|
2023-07-14 13:19:50 +10:00
|
|
|
{% if posto.root_post %}
|
2023-07-16 02:35:06 +10:00
|
|
|
<div class=" ">
|
2023-07-14 13:19:50 +10:00
|
|
|
{% else %}
|
2023-07-16 02:35:06 +10:00
|
|
|
<div class=" ">
|
2023-07-14 13:19:50 +10:00
|
|
|
{% endif %}
|
2023-07-16 02:35:06 +10:00
|
|
|
<div class=" " id="post-{{ posto._key }}">
|
|
|
|
<div class=" ">
|
|
|
|
<div class=""">
|
2023-07-14 13:19:50 +10:00
|
|
|
<div class="hex-main">
|
|
|
|
<div class="hex-container">
|
|
|
|
<a href="https://loremflickr.com/g/320/240/paris" target="_blank" ">
|
|
|
|
<img src="https://loremflickr.com/g/320/240/paris">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-07-14 13:16:05 +10:00
|
|
|
</div>
|
2023-07-16 02:35:06 +10:00
|
|
|
<div class=" ">
|
|
|
|
<div class=" ">
|
|
|
|
<span class=" e">#{{ posto._key }}
|
|
|
|
<span class=" " data-badge-caption="">Ответов: {{ posto.answers_num }}</span>
|
|
|
|
<span class=" " data-badge-caption="">Длина треда: {{ posto.children_num }}</span>
|
2023-07-14 13:19:50 +10:00
|
|
|
</span>
|
|
|
|
|
|
|
|
{% if posto.parent_post %}
|
2023-07-16 02:35:06 +10:00
|
|
|
<a class=" " href="#post-{{ posto.parent_post }}"> >>{{ posto.parent_post }} </a>
|
2023-07-14 13:19:50 +10:00
|
|
|
{% endif %}
|
|
|
|
<p>{{ posto.texto }}</p>
|
|
|
|
</div>
|
2023-07-14 13:16:05 +10:00
|
|
|
</div>
|
2023-07-16 02:35:06 +10:00
|
|
|
<div class=" ">
|
|
|
|
<div class=" ">
|
2023-07-14 13:19:50 +10:00
|
|
|
<a href="#" hx-post="/post_my_post/{{ posto._key }}" hx-target="#neu-posts" >Answer me!</a>
|
|
|
|
</div>
|
2023-07-14 13:16:05 +10:00
|
|
|
</div>
|
2023-07-13 20:23:27 +10:00
|
|
|
</div>
|
2023-07-13 21:34:06 +10:00
|
|
|
</div>
|
2023-07-14 13:19:50 +10:00
|
|
|
</div>
|
2023-07-14 13:16:32 +10:00
|
|
|
{% endfor %}
|
2023-07-13 19:50:45 +10:00
|
|
|
{% endif %}
|