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

41 lines
1.5 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: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">
<img src="https://loremflickr.com/100/190/nature/6">
</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:19:57 +10:00
</div>
<div class="col s12 m7">
<h2 class="header">Horizontal Card</h2>
<div class="card horizontal">
<div class="card-image">
2023-07-13 20:20:34 +10:00
<img src="https://loremflickr.com/100/190/nature/6">
2023-07-13 20:19:57 +10:00
</div>
<div class="card-stacked">
<div class="card-content">
<p>I am a very simple card. I am good at containing small bits of information.</p>
</div>
<div class="card-action">
<a href="#">This is a link</a>
</div>
</div>
</div>
</div>
2023-07-13 19:50:45 +10:00
{% endfor %}
{% endif %}