Fix up voting and start adding club logos

This commit is contained in:
2025-10-03 00:13:09 +08:00
parent 7f0d171e21
commit 131f17947c
17 changed files with 516 additions and 37 deletions
+15 -3
View File
@@ -77,6 +77,7 @@
<tr>
<th>ID</th>
<th>Club Name</th>
<th>Logo</th>
<th>Logo URL</th>
<th>Actions</th>
</tr>
@@ -87,9 +88,20 @@
<td>{{ club.id }}</td>
<td>{{ club.hockey_club }}</td>
<td>
<a href="{{ club.logo_url }}" target="_blank" class="text-decoration-none">
{{ club.logo_url }}
</a>
{% if club.logo_url %}
<img src="{{ club.logo_url }}" alt="{{ club.hockey_club }} logo" style="max-height: 40px; max-width: 60px;" onerror="this.style.display='none'">
{% else %}
<span class="text-muted">No logo</span>
{% endif %}
</td>
<td>
{% if club.logo_url %}
<a href="{{ club.logo_url }}" target="_blank" class="text-decoration-none small">
{{ club.logo_url[:50] }}{% if club.logo_url|length > 50 %}...{% endif %}
</a>
{% else %}
<span class="text-muted">No URL</span>
{% endif %}
</td>
<td>
<a href="/admin/clubs/edit/{{ club.id }}" class="btn btn-sm btn-outline-primary">Edit</a>