quarantine.tpl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <html>
  2. <head>
  3. <meta name="x-apple-disable-message-reformatting" />
  4. <style>
  5. body {
  6. font-family: Helvetica, Arial, Sans-Serif;
  7. }
  8. table {
  9. border-collapse: collapse;
  10. width: 100%;
  11. margin-bottom: 20px;
  12. }
  13. th, td {
  14. padding: 8px;
  15. text-align: left;
  16. border-bottom: 1px solid #ddd;
  17. vertical-align: top;
  18. }
  19. td.fixed {
  20. white-space: nowrap;
  21. }
  22. th {
  23. background-color: #56B04C;
  24. color: white;
  25. }
  26. tr:nth-child(even) {
  27. background-color: #f2f2f2;
  28. }
  29. /* mobile devices */
  30. @media all and (max-width: 480px) {
  31. .mob {
  32. display: none;
  33. }
  34. }
  35. </style>
  36. </head>
  37. <body>
  38. <p>Hi {{username}}!<br>
  39. {% if counter == 1 %}
  40. There is 1 new message waiting in quarantine:<br>
  41. {% else %}
  42. There are {{counter}} new messages waiting in quarantine:<br>
  43. {% endif %}
  44. <table>
  45. <tr><th>Subject</th><th>Sender</th><th class="mob">Score</th><th class="mob">Arrived on</th>{% if quarantine_acl == 1 %}<th>Actions</th>{% endif %}</tr>
  46. {% for line in meta %}
  47. <tr>
  48. <td>{{ line.subject|e }}</td>
  49. <td>{{ line.sender|e }}</td>
  50. <td class="mob">{{ line.score }}</td>
  51. <td class="mob">{{ line.created }}</td>
  52. {% if quarantine_acl == 1 %}
  53. <td class="fixed"><a href="https://{{ hostname }}/qhandler/release/{{ line.qhash }}">release</a> | <a href="https://{{ hostname }}/qhandler/delete/{{ line.qhash }}">delete</a></td>
  54. {% endif %}
  55. </tr>
  56. {% endfor %}
  57. </table>
  58. </p>
  59. </body>
  60. </html>