flask-htmx-board1/templates/i-posts.html

38 lines
1.6 KiB
HTML
Raw Normal View History

2023-07-13 19:59:56 +10:00
{% if postos | length > 0 %}
2023-07-13 20:09:26 +10:00
{% for posto in postos %}
<div class="row">
<div class="col s12 m6">
2023-07-13 20:26:14 +10:00
{% 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">
2023-07-13 20:32:42 +10:00
<div class="col s4">
2023-07-13 20:26:14 +10:00
<div class="card-image">
2023-07-13 20:29:29 +10:00
<div class="hex-main">
<div class="hex-container">
2023-07-13 20:33:42 +10:00
<a href="https://loremflickr.com/g/320/240/paris" target="_blank" ">
<img src="https://loremflickr.com/g/320/240/paris">
</a>
2023-07-13 20:29:29 +10:00
</div>
</div>
2023-07-13 20:26:14 +10:00
</div>
</div>
2023-07-13 20:32:42 +10:00
<div class="col s8">
2023-07-13 20:26:14 +10:00
<div class="card-content white-text">
<span class="card-title">#{{ posto._key }}</span>
<p>{{ posto.texto }}</p>
</div>
2023-07-13 20:28:21 +10:00
</div>
<div class="col s12">
2023-07-13 20:35:11 +10:00
<div class="card-action right">
2023-07-13 20:26:14 +10:00
<a href="#">Answer me!</a>
</div>
</div>
</div>
2023-07-13 20:23:27 +10:00
</div>
2023-07-13 20:09:26 +10:00
</div>
2023-07-13 20:23:59 +10:00
</div>
2023-07-13 19:50:45 +10:00
{% endfor %}
{% endif %}