Clarify status of pending attendee emails
authorMagnus Hagander <magnus@hagander.net>
Wed, 21 Aug 2024 15:04:07 +0000 (17:04 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 21 Aug 2024 15:33:23 +0000 (17:33 +0200)
Separate out "not sent yet" from "not supposed to be sent yet".

template/confreg/admin_mail.html

index 37970492f182ef55c14ab27c595e14df38d72b30..0f8af14e3737e7ee1eae6f25e157361ddb88c91d 100644 (file)
@@ -25,7 +25,7 @@ The following emails have been sent to all attendees of the conference:
   </tr>
 {%for m in mails%}
   <tr>
-    <td>{{m.sentat|date:"Y-m-d H:i"}}{%if m.future%} (Not sent yet!){%endif%}</td>
+    <td>{{m.sentat|date:"Y-m-d H:i"}}{%if m.future%} (Not scheduled yet!){%elif not m.sent%} (Not sent yet){%endif%}</td>
     <td><a href="{{m.id}}/">{{m.subject}}</a></td>
     <td><ul class="nopad">{%for rc in m.regclasses.all %}<li>{{rc}}</li>{%endfor%}</ul></td>
     <td><ul class="nopad">{%for ao in m.addopts.all %}<li>{{ao.name}}</li>{%endfor%}</ul></td>