Explorar o código

[Web] Improvement of quarantine notification

André Peters %!s(int64=6) %!d(string=hai) anos
pai
achega
c187531afd
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      data/assets/templates/quarantine.tpl

+ 4 - 0
data/assets/templates/quarantine.tpl

@@ -25,7 +25,11 @@
   </head>
   <body>
     <p>Hi!<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>
     <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 %}