2
0
Эх сурвалжийг харах

[Asset] Add default template for quarantine notifications

andryyy 6 жил өмнө
parent
commit
43a91639e0

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

@@ -0,0 +1,35 @@
+<html>
+  <head>
+  <style>
+  body {
+    font-family: sans-serif;
+  }
+  table {
+    border-collapse: collapse;
+    width: 100%;
+    margin-bottom: 20px;
+  }
+  th, td {
+    padding: 8px;
+    text-align: left;
+    border-bottom: 1px solid #ddd;
+    vertical-align: top;
+  }
+  </style>
+  </head>
+  <body>
+    <p>Hi!<br>
+    There are {{counter}} new messages waiting in quarantine:<br>
+    <table>
+    <tr><th>Subject</th><th>Sender</th><th>Arrived on</th></tr>
+    {% for line in meta %}
+    <tr>
+    <td>{{ line.subject|e }}</td>
+    <td>{{ line.sender|e }}</td>
+    <td>{{ line.created }}</td>
+    </tr>
+    {% endfor %}
+    </table>
+    </p>
+  </body>
+</html>