Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

show appropriate message when canceling a payment #3477

Merged
merged 1 commit into from
May 22, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions www/%team/subscription.json.spt
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,11 @@ else:

out["amount"] = str(amount)
out["amount_l"] = format_currency(amount, 'USD')
out["msg"] = _("Payment changed to {0} per week. ", out["amount_l"])
out["msg"] += _("Thank you so much for supporting {0}!", team.name)
if amount > 0:
out["msg"] = _("Payment changed to {0} per week. ", out["amount_l"])
out["msg"] += _("Thank you so much for supporting {0}!", team.name)
else:
out["msg"] = _("You have successfully canceled your payment to {0}.", team.name)
out["nsupporters"] = team.nsupporters
out["team_id"] = team.id
out["total_giving"] = str(total_giving)
Expand Down