1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-24 03:08:47 +02:00

Fix mails when the user or the club has a negative balance

This commit is contained in:
Yohann D'ANELLO
2020-09-01 15:52:27 +02:00
parent 2b70a05a9e
commit eaf256b1b6
3 changed files with 9 additions and 8 deletions

View File

@ -6,11 +6,11 @@
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Passage en négatif (compte n°{{ note.user.pk }})</title>
<title>Passage en négatif (compte n°{{ note.pk }})</title>
</head>
<body>
<p>
Bonjour {{ note }},
Bonjour {% if note.user %}{{ note.user }}{% else %}{{ note.club.name }}{% endif %},
</p>
<p>
@ -28,7 +28,7 @@
<p>
Si tu ne comprends pas ton solde, tu peux consulter ton historique
sur <a href="https://{{ "NOTE_URL"|getenv }}{% url "member:user_detail" pk=note.user.pk %}">ton compte</a>.
sur <a href="https://{{ "NOTE_URL"|getenv }}{% if note.user %}{% url "member:user_detail" pk=note.user.pk %}{% else %}{% url "member:club_detail" pk=note.club.pk %}{% endif %}">ton compte</a>.
</p>
<p>