Add country flag to cards

This commit is contained in:
2025-03-20 22:07:12 +01:00
parent c8cc8c5ed0
commit 647894bca7
3 changed files with 6 additions and 2 deletions

View File

@@ -46,7 +46,10 @@
{% endif %}
<tr>
<th class="w-33" scope="row">Company</th>
<td><abbr title="{{ d.item.company.extended_name }}">{{ d.item.company }}</abbr></td>
<td>
<img src="{{ d.item.company.country.flag }}" alt="{{ d.item.company.country }}">
<abbr title="{{ d.item.company.extended_name }}">{{ d.item.company }}</abbr>
</td>
</tr>
<tr>
<th scope="row">Era</th>

View File

@@ -43,6 +43,7 @@
<tr>
<th scope="row">Company</th>
<td>
<img src="{{ d.item.company.country.flag }}" alt="{{ d.item.company.country }}">
<a href="{% url 'filtered' _filter="company" search=d.item.company.slug %}"><abbr title="{{ d.item.company.extended_name }}">{{ d.item.company }}</abbr></a>
</td>
</tr>