Make templates sexier

This commit is contained in:
Joakim Hellsén 2026-03-10 13:24:30 +01:00
commit 719e5d416b
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
5 changed files with 24 additions and 54 deletions

View file

@ -6,25 +6,7 @@
{% block content %}
<h1>{{ badge_set.set_id }}</h1>
{% if badges %}
<h2>
{{ badges.count }}
{% if badges.count == 1 %}
version
{% else %}
versions
{% endif %}
</h2>
<table>
<thead>
<tr>
<th>ID</th>
<th></th>
<th>Title</th>
<th>Description</th>
<th>Images</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for badge in badges %}
<tr>
@ -32,7 +14,7 @@
<code>{{ badge.badge_id }}</code>
</td>
<td>
{% picture badge.image_url_4x alt=badge.title width=72 height=72 style="width: 72px !important; height: 72px !important; object-fit: contain" %}
{% picture badge.image_url_4x alt=badge.title width=72 style="width: 72px !important; height: 72px !important; object-fit: contain" %}
</td>
<td>{{ badge.title }}</td>
<td>{{ badge.description }}</td>