qhandler.twig 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {% extends 'base.twig' %}
  2. {% block content %}
  3. <div class="row">
  4. {% if quick_release or quick_delete %}
  5. <div class="offset-md-2 col-md-8">
  6. <div class="card">
  7. <div class="card-header"><i class="bi bi-patch-exclamation-fill"></i> {{ lang.header.quarantine }}</div>
  8. <div class="card-body">
  9. <legend>
  10. {% if quick_release %}
  11. {{ lang.quarantine.release }}
  12. {% else %}
  13. {{ lang.quarantine.remove }}
  14. {% endif %}
  15. </legend>
  16. <hr />
  17. <p>{{ lang.quarantine.qhandler_success }}</p>
  18. </div>
  19. </div>
  20. </div>
  21. {% else %}
  22. {% if is_action_release_delete and is_hash_present %}
  23. <div class="-offset-md-2 col-md-8">
  24. <div class="card">
  25. <div class="card-header"><i class="bi bi-patch-exclamation-fill"></i> {{ lang.header.quarantine }}</div>
  26. <div class="card-body">
  27. {% if action == 'release' %}
  28. <legend id="qtitle" data-hash="{{ hash }}">{{ lang.quarantine.release }}</legend><hr />
  29. {% endif %}
  30. {% if action == 'delete' %}
  31. <legend id="qtitle" data-hash="{{ hash }}">{{ lang.quarantine.remove }}</legend><hr />
  32. {% endif %}
  33. <div id="qid_error" style="display:none" class="alert alert-danger"></div>
  34. <div>
  35. <label for="qid_detail_symbols"><h4>{{ lang.quarantine.rspamd_result }}:</h4></label>
  36. <p>{{ lang.quarantine.spam_score }}: <span id="qid_detail_score"></span></p>
  37. <p id="qid_detail_symbols"></p>
  38. </div>
  39. <div>
  40. <label for="qid_detail_subj"><h4>{{ lang.quarantine.subj }}:</h4></label>
  41. <p id="qid_detail_subj"></p>
  42. </div>
  43. <div>
  44. <label for="qid_detail_hfrom"><h4>{{ lang.quarantine.sender_header }}:</h4></label>
  45. <p><span class="mail-address-item" id="qid_detail_hfrom"></span></p>
  46. </div>
  47. <div>
  48. <label for="qid_detail_efrom"><h4>{{ lang.quarantine.sender }}:</h4></label>
  49. <p><span class="mail-address-item" id="qid_detail_efrom"></span></p>
  50. </div>
  51. <div>
  52. <label for="qid_detail_recipients"><h4>{{ lang.quarantine.recipients }}:</h4></label>
  53. <p id="qid_detail_recipients"></p>
  54. </div>
  55. <div>
  56. <label for="qid_detail_fuzzy"><h4>Fuzzy Hashes:</h4></label>
  57. <p id="qid_detail_fuzzy"></p>
  58. </div>
  59. <div id="qactions">
  60. <form method="post" autofill="off">
  61. <div>
  62. {% if action == 'release' %}
  63. <button type="submit" class="btn btn-success" name="quick_release" value="{{ hash }}">{{ lang.quarantine.confirm }}</button>
  64. {% endif %}
  65. {% if action == 'delete' %}
  66. <button type="submit" class="btn btn-success" name="quick_delete" value="{{ hash }}">{{ lang.quarantine.confirm }}</button>
  67. {% endif %}
  68. </div>
  69. </form>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. {% endif %}
  75. {% endif %}
  76. </div> <!-- /row -->
  77. <script type='text/javascript'>
  78. var lang = {{ lang_quarantine|raw }};
  79. </script>
  80. {% endblock %}