42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
<div id="search-results"
|
|
class="min-w-full w-full">
|
|
<table class="text-left min-w-full w-full">
|
|
<tr class="border-b border-beige">
|
|
<td class="font-bold py-2 px-4">Nom</td>
|
|
<td class="font-bold py-2 px-4">Enllaços</td>
|
|
</tr>
|
|
{% for tema in temes %}
|
|
<tr class="border-b border-beige">
|
|
<td class="py-2 px-4">
|
|
<a href="/tema/{{ tema.id }}">
|
|
{{ tema.title }}
|
|
</a>
|
|
</td>
|
|
<td class="py-2 px-4">
|
|
{% include "fragments/temes/result_links.html" %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% if prev_offset is not none or next_offset is not none %}
|
|
<div class="py-2">
|
|
{% if prev_offset is not none %}
|
|
<button class="text-beige mx-2"
|
|
hx-get="/api/temes/busca?query={{ query }}&offset={{ prev_offset }}"
|
|
hx-target="#search-results"
|
|
hx-swap="outerHTML">
|
|
<i class="fa fa-chevron-left" aria-hidden="true"></i>
|
|
</button>
|
|
{% endif %}
|
|
{% if next_offset is not none %}
|
|
<button class="text-beige mx-2"
|
|
hx-get="/api/temes/busca?query={{ query }}&offset={{ next_offset }}"
|
|
hx-target="#search-results"
|
|
hx-swap="outerHTML">
|
|
<i class="fa fa-chevron-right" aria-hidden="true"></i>
|
|
</button>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|