html-over-websockets-with-d.../app/website/templates/pages/talks.html

30 lines
991 B
HTML
Raw Normal View History

2021-11-12 20:54:20 +01:00
<main id="main">
2021-11-12 18:59:01 +01:00
{% for talk in talks %}
2021-11-12 20:54:20 +01:00
<a href="#">
<article>
<header>
<div class="grid">
<p>
<img width="200" src="{{ talk.image.url }}">
</p>
<h2>{{ talk.title }}</h2>
</div>
</header>
<p>
2021-11-12 21:25:19 +01:00
{{ talk.content|truncatechars:150 }}
2021-11-12 20:54:20 +01:00
</p>
<footer>Author {{ talk.author.full_name }} - {{ talk.category.name }}</footer>
</article>
</a>
2021-11-12 18:59:01 +01:00
{% endfor %}
2021-11-12 22:16:42 +01:00
{# Pagination #}
<div class="loading" >
<form>
<input type="hidden" name="action" value="page">
<input type="hidden" name="value" value="talks">
<input type="hidden" name="page" value="{{ next_page }}">
<p hx-ws="send" hx-trigger="click,revealed">Show more</p>
</form>
</div>
2021-11-12 18:59:01 +01:00
</main>