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

24 lines
832 B
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:23:01 +10:00
{% if posto.root_post %}
2023-07-13 20:21:17 +10:00
<div class="card deep-orange accent-4 darken-1">
2023-07-13 20:23:01 +10:00
{% else %}
<div class="card blue-grey darken-1">
{% endif %}
2023-07-13 20:23:27 +10:00
<div class="card-image">
2023-07-13 20:23:59 +10:00
<img src="https://loremflickr.com/g/320/240/paris">
2023-07-13 20:23:27 +10:00
</div>
2023-07-13 20:09:26 +10:00
<div class="card-content white-text">
2023-07-13 20:13:33 +10:00
<span class="card-title">#{{ posto._key }}</span>
2023-07-13 20:09:26 +10:00
<p>{{ posto.texto }}</p>
</div>
<div class="card-action">
2023-07-13 20:12:11 +10:00
<a href="#">Answer me!</a>
2023-07-13 20:09:26 +10:00
</div>
</div>
</div>
2023-07-13 20:23:59 +10:00
</div>
2023-07-13 19:50:45 +10:00
{% endfor %}
{% endif %}