fix png generation to align with new card badges, fixes #2

This commit is contained in:
badblocks 2025-04-08 14:40:41 -07:00
parent a83ce746b5
commit 1cdeaa9bba
11 changed files with 27 additions and 32 deletions

View file

@ -1,6 +1,6 @@
{% include 'email/common/header.txt' %}
Great news! {{ acting_user }} ({{ acting_user_friend_code }}, in-game name: {{ acting_user_ign }}) has accepted your trade offer.
Great news! {{ acting_user }} ({{ acting_user_friend_code }} in-game name: {{ acting_user_ign }}) has accepted your trade offer.
Trade Details:
- They have: {{ want_card }}

View file

@ -1,6 +1,6 @@
{% include 'email/common/header.txt' %}
Great news! {{ acting_user }} ({{ acting_user_friend_code }}, in-game name: {{ acting_user_ign }}) has marked your trade as "Received".
Great news! {{ acting_user }} ({{ acting_user_friend_code }} in-game name: {{ acting_user_ign }}) has marked your trade as "Received".
Trade Details:
- They sent: {{ want_card }}

View file

@ -1,6 +1,6 @@
{% include 'email/common/header.txt' %}
We're sorry to inform you that {{ acting_user }} ({{ acting_user_friend_code }}, in-game name: {{ acting_user_ign }}) has canceled their trade acceptance.
We're sorry to inform you that {{ acting_user }} ({{ acting_user_friend_code }} in-game name: {{ acting_user_ign }}) has canceled their trade acceptance.
Trade Details:
- They had: {{ want_card }}

View file

@ -1,6 +1,6 @@
{% include 'email/common/header.txt' %}
We're sorry to inform you that {{ acting_user }} ({{ acting_user_friend_code }}, in-game name: {{ acting_user_ign }}) has rejected the trade.
We're sorry to inform you that {{ acting_user }} ({{ acting_user_friend_code }} in-game name: {{ acting_user_ign }}) has rejected the trade.
Trade Details:
- You had: {{ has_card }}

View file

@ -1,6 +1,6 @@
{% include 'email/common/header.txt' %}
Great news! {{ acting_user }} ({{ acting_user_friend_code }}, in-game name: {{ acting_user_ign }}) has marked your trade as "Sent".
Great news! {{ acting_user }} ({{ acting_user_friend_code }} in-game name: {{ acting_user_ign }}) has marked your trade as "Sent".
Trade Details:
- You have: {{ want_card }}

View file

@ -1,6 +1,6 @@
{% include 'email/common/header.txt' %}
{{ acting_user }} ({{ acting_user_friend_code }}, in-game name: {{ acting_user_ign }}) has sent their thanks for the successful trade!
{{ acting_user }} ({{ acting_user_friend_code }} in-game name: {{ acting_user_ign }}) has sent their thanks for the successful trade!
Trade Details:
- They sent: {{ want_card }}

View file

@ -1,6 +1,6 @@
{% include 'email/common/header.txt' %}
{{ acting_user }} ({{ acting_user_friend_code }}, in-game name: {{ acting_user_ign }}) has sent their thanks for the successful trade!
{{ acting_user }} ({{ acting_user_friend_code }} in-game name: {{ acting_user_ign }}) has sent their thanks for the successful trade!
Trade Details:
- {% if is_initiator %}You{% else %}They{% endif %} sent: {{ want_card }}

View file

@ -1,6 +1,6 @@
{% include 'email/common/header.txt' %}
{{ acting_user }} ({{ acting_user_friend_code }}, in-game name: {{ acting_user_ign }}) has sent their thanks for the successful trade!
{{ acting_user }} ({{ acting_user_friend_code }} in-game name: {{ acting_user_ign }}) has sent their thanks for the successful trade!
Trade Details:
- You sent: {{ want_card }}

View file

@ -13,7 +13,7 @@
<!-- Flip container providing perspective -->
<div class="flip-container">
<div class="flip-inner grid grid-cols-1 grid-rows-1 card bg-base-100 card-border shadow-lg {% if num_cards_available >= 4 %}w-192{% else %}w-96{% endif %} transform transition-transform duration-700 ease-in-out">
<div class="flip-inner grid grid-cols-1 grid-rows-1 card bg-base-100 card-border shadow-lg {% if expanded %}w-180{% else %}w-96{% endif %} transform transition-transform duration-700 ease-in-out">
<!-- Front Face: Trade Offer -->
<div class="flip-face front mb-2 col-start-1 row-start-1 grid grid-cols-1 auto-rows-min gap-2 content-between">
@ -41,9 +41,9 @@
<a href="{% url 'trade_offer_detail' pk=offer_pk %}" class="no-underline block">
<div class="px-4 main-badges pb-0">
{% if expanded %}
<div class="flex flex-row gap-2 justify-around">
<div class="flex flex-row gap-1 justify-around">
<!-- Has Side (inner grid of 2 columns) -->
<div class="grid grid-cols-2 gap-2">
<div class="grid grid-cols-2 content-start">
{% for card in have_cards_available %}
{% card_badge card.card card.quantity %}
{% endfor %}
@ -53,7 +53,7 @@
<div class="w-px bg-gray-300 h-full"></div>
</div>
<!-- Wants Side (inner grid of 2 columns) -->
<div class="grid grid-cols-2 gap-2">
<div class="grid grid-cols-2 content-start">
{% for card in want_cards_available %}
{% card_badge card.card card.quantity %}
{% endfor %}
@ -61,9 +61,9 @@
</div>
{% else %}
<!-- Normal mode: just use an outer grid with 2 columns -->
<div class="flex flex-row gap-2 justify-around">
<div class="flex flex-row gap-1 justify-around">
<!-- Has Side -->
<div class="flex flex-col gap-2">
<div class="flex flex-col content-start">
{% for card in have_cards_available %}
{% card_badge card.card card.quantity %}
{% empty %}
@ -71,7 +71,7 @@
{% endfor %}
</div>
<!-- Wants Side -->
<div class="flex flex-col gap-2">
<div class="flex flex-col content-start">
{% for card in want_cards_available %}
{% card_badge card.card card.quantity %}
{% empty %}