fix card_badges to always be links to card detail page

This commit is contained in:
badblocks 2025-04-13 00:31:24 -07:00
parent 5fbe80e83a
commit 9e501af1ac
6 changed files with 37 additions and 39 deletions

View file

@ -2,10 +2,7 @@
{% if cards %}
<div class="mx-4 grid gap-3 grid-cols-[repeat(auto-fit,minmax(150px,1fr))] justify-items-center">
{% for card in cards %}
<a href="{% url 'cards:card_detail' card.id %}"
class="flex justify-between items-center text-primary no-underline">
{% card_badge card quantity=card.offer_count expanded=True %}
</a>
{% card_badge card quantity=card.offer_count expanded=True %}
{% endfor %}
</div>
{% else %}