35 lines
960 B
HTML
35 lines
960 B
HTML
<li class="flex flex-col
|
|
items-center
|
|
m-4 rounded-lg
|
|
bg-white">
|
|
<div class="py-2 px-4 text-black font-bold">
|
|
<a href="/tema/{{ tema.id }}">
|
|
{{ tema.title }}
|
|
</a>
|
|
</div>
|
|
{% if tema.main_score() and tema.main_score().preview_url %}
|
|
<a href="/tema/{{ tema.id }}"
|
|
class="max-w">
|
|
<img class="p-2 max-w"
|
|
src="{{ tema.main_score().preview_url }}" />
|
|
</a>
|
|
{% endif %}
|
|
{% if tema.properties %}
|
|
<ul class="flex flex-wrap text-sm
|
|
py-2 px-4">
|
|
{% for property in tema.properties %}
|
|
<button class="bg-beige text-white rounded
|
|
m-1 px-2"
|
|
hx-get="/api/content/temes"
|
|
hx-target="#content"
|
|
hx-include="[name=query]"
|
|
hx-vars="properties:{{ add_property_str(property.value) }}"
|
|
hx-swap="innerHTML"
|
|
>
|
|
{{ property.value }}
|
|
</button>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</li>
|