40 lines
1.8 KiB
HTML
40 lines
1.8 KiB
HTML
{% if postos | length > 0 %}
|
|
{% for posto in postos %}
|
|
{% if posto.root_post %}
|
|
<div class="card deep-orange accent-4 darken-1">
|
|
{% else %}
|
|
<div class="card blue-grey darken-1">
|
|
{% endif %}
|
|
<div class="row" id="post-{{ posto._key }}">
|
|
<div class="col s4">
|
|
<div class="card-image">
|
|
<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>
|
|
</div>
|
|
<div class="col s8">
|
|
<div class="card-content white-text">
|
|
<span class="card-title">#{{ posto._key }}
|
|
{% if posto.parent_post %}
|
|
<span class="new badge" data-badge-caption=""><a href="#post-{{ posto.parent_post }}">>{{ posto.parent_post }}</a></span>
|
|
{% endif %}
|
|
<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>
|
|
<p>{{ posto.texto }}</p>
|
|
</div>
|
|
</div>
|
|
<div class="col s12">
|
|
<div class="card-action right">
|
|
<a href="#" hx-post="/post_my_post/{{ posto._key }}" hx-target="#neu-posts" >Answer me!</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %} |