wip: pagination

This commit is contained in:
2025-05-12 20:27:39 -05:00
parent 6ad10a585d
commit 4653feb123
7 changed files with 132 additions and 18 deletions

View File

@@ -15,7 +15,7 @@
</thead>
<tbody id="{{ table_body_id }}" class="divide-y divide-gray-200 dark:divide-gray-50">
{% if this.downloads|length > 0 %}
{% for download in this.downloads %}
{% for download in this.downloads.items %}
<tr id="ad_download_{{ download.id }}">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-800 dark:text-stone-800 min-w-[45ch] max-w-[45ch] truncate">
{{ download.title }}
@@ -40,5 +40,10 @@
{% endif %}
</tbody>
</table>
{% if this.downloads.items|length > 0 %}
{% set paginator = this.downloads %}
{% include 'partial/paginator.html.twig' %}
{% endif %}
</div>