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