Added tune previews

This commit is contained in:
marc
2025-04-27 17:00:04 +02:00
parent 695e0b54bf
commit bc3d98aba2
14 changed files with 123 additions and 131 deletions

View File

@@ -12,32 +12,34 @@
<i>{{ query }}</i>
</button>
{% endif %}
<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>
<td class="font-bold py-2 px-4">Cops tocat</td>
</tr>
<ul class="text-left min-w-full w-full">
{% for tema in temes %}
<tr class="border-b border-beige">
<td class="py-2 px-4">
<li class="flex flex-col
m-4 rounded-lg
bg-white">
<div class="py-2 px-4 text-brown font-bold">
<a href="/tema/{{ tema.id }}">
{{ tema.title }}
</a>
</td>
<td class="py-2 px-4">
{% include "fragments/temes/result_links.html" %}
</td>
<td class="py-2 px-4">
{% if tema.stats is none %}
-
{% else %}
{{ tema.stats.times_played }}
{% endif %}
</td>
</tr>
</div>
{% if tema.main_score() and tema.main_score().preview_url %}
<img class="p-2 max-w"
src="{{ tema.main_score().preview_url }}" />
{% endif %}
{% if tema.properties %}
<ul class="flex flex-wrap text-sm
py-2 px-4">
{% for property in tema.properties %}
<div class="bg-beige text-white rounded
m-1 px-2">
{{ property.value }}
</div>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</table>
</ul>
{% if prev_offset is not none or next_offset is not none %}
<div class="py-2">
{% if prev_offset is not none %}