Browse Source

[Dovecot] improved quarantine message

Aiko Appeldorn 6 years ago
parent
commit
fdf21b8412
1 changed files with 5 additions and 1 deletions
  1. 5 1
      data/assets/templates/quarantine.tpl

+ 5 - 1
data/assets/templates/quarantine.tpl

@@ -25,7 +25,11 @@
   </head>
   </head>
   <body>
   <body>
     <p>Hi!<br>
     <p>Hi!<br>
-    There are {{counter}} new messages waiting in quarantine:<br>
+	{% if counter == 1 %}
+    There is 1 new message waiting in quarantine:<br>
+	{% else %}
+	There are {{counter}} new messages waiting in quarantine:<br>
+	{% endif %}
     <table>
     <table>
     <tr><th>Subject</th><th>Sender</th><th>Score</th><th>Arrived on</th>{% if quarantine_acl == 1 %}<th>Actions</th>{% endif %}</tr>
     <tr><th>Subject</th><th>Sender</th><th>Score</th><th>Arrived on</th>{% if quarantine_acl == 1 %}<th>Actions</th>{% endif %}</tr>
     {% for line in meta %}
     {% for line in meta %}