check posts
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simple_Not 2023-07-14 13:19:50 +10:00
parent d83ccb48ec
commit a4c1a4cb7b

View File

@ -1,38 +1,40 @@
{% if postos | length > 0 %} {% if postos | length > 0 %}
{% for posto in postos %} {% for posto in postos %}
{% if posto.root_post %} <div class="row">
<div class="card deep-orange accent-4 darken-1"> {% if posto.root_post %}
{% else %} <div class="card deep-orange accent-4 darken-1">
<div class="card blue-grey darken-1"> {% else %}
{% endif %} <div class="card blue-grey darken-1">
<div class="row" id="post-{{ posto._key }}"> {% endif %}
<div class="col s4"> <div class="row" id="post-{{ posto._key }}">
<div class="card-image"> <div class="col s4">
<div class="hex-main"> <div class="card-image">
<div class="hex-container"> <div class="hex-main">
<a href="https://loremflickr.com/g/320/240/paris" target="_blank" "> <div class="hex-container">
<img src="https://loremflickr.com/g/320/240/paris"> <a href="https://loremflickr.com/g/320/240/paris" target="_blank" ">
</a> <img src="https://loremflickr.com/g/320/240/paris">
</a>
</div>
</div> </div>
</div> </div>
</div> </div>
</div> <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> <span class="new badge red" data-badge-caption="">Длина треда: {{ posto.children_num }}</span>
<span class="new badge red" data-badge-caption="">Длина треда: {{ posto.children_num }}</span> </span>
</span>
{% if posto.parent_post %} {% if posto.parent_post %}
<a class="card-action" href="#post-{{ posto.parent_post }}"> >>{{ posto.parent_post }} </a> <a class="card-action" href="#post-{{ posto.parent_post }}"> >>{{ posto.parent_post }} </a>
{% endif %} {% endif %}
<p>{{ posto.texto }}</p> <p>{{ posto.texto }}</p>
</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> </div>
</div> </div>
</div> </div>
</div> </div>