Filters
This commit is contained in:
parent
a5e3fb2850
commit
04f888c323
6 changed files with 182 additions and 69 deletions
|
|
@ -35,6 +35,9 @@
|
|||
</article>
|
||||
<main>
|
||||
<h1>Viewing posts</h1>
|
||||
{% if posts.is_empty() %}
|
||||
<div>No posts found!</div>
|
||||
{% else %}
|
||||
<ul>
|
||||
{% for post in posts %}
|
||||
<li>
|
||||
|
|
@ -48,6 +51,7 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
<div>Page {{ page }} of {{ page_count }}</div>
|
||||
{% endif %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{% for tag in tags %}
|
||||
<li>
|
||||
<button
|
||||
hx-post="/select_tag/{{ tag.name }}"
|
||||
hx-post="/select_tag/{{ tag.value }}"
|
||||
hx-target="previous .tags"
|
||||
hx-swap="outerHTML"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue