瀏覽代碼

[Assets] Update quarantine template (please review and update in case of modifications)

andryyy 4 年之前
父節點
當前提交
8dce12dbfa
共有 1 個文件被更改,包括 12 次插入3 次删除
  1. 12 3
      data/assets/templates/quarantine.tpl

+ 12 - 3
data/assets/templates/quarantine.tpl

@@ -42,15 +42,24 @@
     There are {{counter}} new messages waiting in quarantine:<br>
     There are {{counter}} new messages waiting in quarantine:<br>
     {% endif %}
     {% endif %}
     <table>
     <table>
-    <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>
-    {% for line in meta %}
+    <tr><th>Subject</th><th>Sender</th><th class="mob">Score</th><th class="mob">Action</th><th class="mob">Arrived on</th>{% if quarantine_acl == 1 %}<th>Actions</th>{% endif %}</tr>
+    {% for line in meta|reverse %}
     <tr>
     <tr>
     <td>{{ line.subject|e }}</td>
     <td>{{ line.subject|e }}</td>
     <td>{{ line.sender|e }}</td>
     <td>{{ line.sender|e }}</td>
     <td class="mob">{{ line.score }}</td>
     <td class="mob">{{ line.score }}</td>
+    {% if line.action == "reject" %}
+      <td class="mob">Rejected</td>
+    {% else %}
+      <td class="mob">Sent to Junk folder</td>
+    {% endif %}
     <td class="mob">{{ line.created }}</td>
     <td class="mob">{{ line.created }}</td>
     {% if quarantine_acl == 1 %}
     {% if quarantine_acl == 1 %}
-    <td class="fixed"><a href="https://{{ hostname }}/qhandler/release/{{ line.qhash }}">release</a> | <a href="https://{{ hostname }}/qhandler/delete/{{ line.qhash }}">delete</a></td>
+      {% if line.action == "reject" %}
+        <td class="fixed"><a href="https://{{ hostname }}/qhandler/release/{{ line.qhash }}">Release to inbox</a> | <a href="https://{{ hostname }}/qhandler/delete/{{ line.qhash }}">delete</a></td>
+      {% else %}
+        <td class="fixed"><a href="https://{{ hostname }}/qhandler/release/{{ line.qhash }}">Send copy to inbox</a> | <a href="https://{{ hostname }}/qhandler/delete/{{ line.qhash }}">delete</a></td>
+      {% endif %}
     {% endif %}
     {% endif %}
     </tr>
     </tr>
     {% endfor %}
     {% endfor %}