Bugfixes for emails and bugfixes for trade acceptance quantities being checked on create, closes #1

This commit is contained in:
badblocks 2025-04-08 00:59:40 -07:00
parent 32da8157a6
commit bd7a65975f
21 changed files with 95 additions and 86 deletions

View file

@ -1,2 +1,3 @@
Happy trading!
PKMN Trade Club
Thank you for using PᴋMɴ Trade Club.
Happy trading!

View file

@ -1 +1 @@
Hello {{ recipient_user }},
Hello {{ recipient_user }},

View file

@ -1 +1 @@
[PKMN Trade Club]
[PᴋMɴ Trade Club]

View file

@ -5,11 +5,12 @@ Great news! {{ acting_user }} ({{ acting_user_ign }} {{ acting_user_friend_code
Trade Details:
- They have: {{ want_card }}
- They want: {{ has_card }}
(#{{ hash }})
What's next? You can now mark the trade as "Sent" once you've offered the card to them in the app, or reject the trade if needed.
Visit your dashboard to manage this trade:
{{ domain }}{% url 'dashboard' %}
{% include 'email/common/footer.txt' %}
{% include 'email/common/footer.txt' %}
Trade ID: #{{ hash }}

View file

@ -5,11 +5,12 @@ Great news! {{ acting_user }} ({{ acting_user_ign }} {{ acting_user_friend_code
Trade Details:
- They sent: {{ want_card }}
- They received: {{ has_card }}
(#{{ hash }})
What's next? Send a thank you to this user to increase their reputation!
Visit your dashboard to send thanks:
{{ domain }}{% url 'dashboard' %}
{% include 'email/common/footer.txt' %}
{% include 'email/common/footer.txt' %}
Trade ID: #{{ hash }}

View file

@ -1,15 +1,16 @@
{% include 'email/common/header.txt' %}
We're sorry to inform you that {{ acting_user }} ({{ acting_user_friend_code }}) has canceled their trade acceptance.
We're sorry to inform you that {{ acting_user }} ({{ acting_user_ign }} {{ acting_user_friend_code }}) has canceled their trade acceptance.
Trade Details:
- They had: {{ want_card }}
- They wanted: {{ has_card }}
(#{{ hash }})
Your trade offer is still active and available for other users to accept.
Visit your dashboard to manage your trade offers:
{{ domain }}{% url 'dashboard' %}
{% include 'email/common/footer.txt' %}
{% include 'email/common/footer.txt' %}
Trade ID: #{{ hash }}

View file

@ -1,15 +1,16 @@
{% include 'email/common/header.txt' %}
We're sorry to inform you that {{ acting_user }} ({{ acting_user_friend_code }}) has rejected the trade.
We're sorry to inform you that {{ acting_user }} ({{ acting_user_ign }} {{ acting_user_friend_code }}) has rejected the trade.
Trade Details:
- You had: {{ has_card }}
- You wanted: {{ want_card }}
(#{{ hash }})
Don't worry - there are plenty of other trade opportunities available! You can browse our marketplace for similar trades.
Visit the marketplace:
{{ domain }}{% url 'trade_offer_list' %}
{% include 'email/common/footer.txt' %}
{% include 'email/common/footer.txt' %}
Trade ID: #{{ hash }}

View file

@ -5,11 +5,12 @@
Trade Details:
- You have: {{ want_card }}
- You want: {{ has_card }}
(#{{ hash }})
What's next? Once you respond to the trade in the app, please mark the trade as "Received" in your dashboard.
Visit your dashboard to manage this trade:
{{ domain }}{% url 'dashboard' %}
{% include 'email/common/footer.txt' %}
{% include 'email/common/footer.txt' %}
Trade ID: #{{ hash }}

View file

@ -1,15 +1,16 @@
{% include 'email/common/header.txt' %}
{{ acting_user }} ({{ acting_user_friend_code }}) has sent their thanks for the successful trade!
{{ acting_user }} ({{ acting_user_ign }} {{ acting_user_friend_code }}) has sent their thanks for the successful trade!
Trade Details:
- They sent: {{ want_card }}
- They received: {{ has_card }}
(#{{ hash }})
What's next? Send a thank you to this user to increase their reputation!
Visit your dashboard to send thanks:
{{ domain }}{% url 'dashboard' %}
{% include 'email/common/footer.txt' %}
{% include 'email/common/footer.txt' %}
Trade ID: #{{ hash }}

View file

@ -1,14 +1,13 @@
{% include 'email/common/header.txt' %}
{{ acting_user }} ({{ acting_user_friend_code }}) has sent their thanks for the successful trade!
{{ acting_user }} ({{ acting_user_ign }} {{ acting_user_friend_code }}) has sent their thanks for the successful trade!
Trade Details:
- {% if is_initiator %}They sent: {{ has_card }}{% else %}You sent: {{ want_card }}{% endif %}
- {% if is_initiator %}They received: {{ want_card }}{% else %}You received: {{ has_card }}{% endif %}
(#{{ hash }})
- {% if is_initiator %}You{% else %}They{% endif %} sent: {{ want_card }}
- {% if is_initiator %}You{% else %}They{% endif %} received: {{ has_card }}
This trade is now completed; no further actions can be made.
Thank you for using PKMN Trade Club.
{% include 'email/common/footer.txt' %}
{% include 'email/common/footer.txt' %}
Trade ID: #{{ hash }}

View file

@ -1,15 +1,16 @@
{% include 'email/common/header.txt' %}
{{ acting_user }} ({{ acting_user_friend_code }}) has sent their thanks for the successful trade!
{{ acting_user }} ({{ acting_user_ign }} {{ acting_user_friend_code }}) has sent their thanks for the successful trade!
Trade Details:
- You sent: {{ want_card }}
- You received: {{ has_card }}
(#{{ hash }})
What's next? Send a thank you to this user to increase their reputation!
Visit your dashboard to send thanks:
{{ domain }}{% url 'dashboard' %}
{% include 'email/common/footer.txt' %}
{% include 'email/common/footer.txt' %}
Trade ID: #{{ hash }}