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 %} |
| 6 | <div class="col-md-offset-2 col-md-8"> |
| 7 | <div class="panel panel-default"> |
| 8 | <div class="panel-heading"><i class="bi bi-patch-exclamation-fill"></i> {{ lang.header.quarantine }}</div> |
| 9 | <div class="panel-body"> |
| 10 | <legend> |
| 11 | {% if quick_release %} |
| 12 | {{ lang.quarantine.release }} |
| 13 | {% else %} |
| 14 | {{ lang.quarantine.remove }} |
| 15 | {% endif %} |
| 16 | </legend> |
| 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="col-md-offset-2 col-md-8"> |
| 24 | <div class="panel panel-default"> |
| 25 | <div class="panel-heading"><i class="bi bi-patch-exclamation-fill"></i> {{ lang.header.quarantine }}</div> |
| 26 | <div class="panel-body"> |
| 27 | {% if action == 'release' %} |
| 28 | <legend id="qtitle" data-hash="{{ hash }}">{{ lang.quarantine.release }}</legend> |
| 29 | {% endif %} |
| 30 | {% if action == 'delete' %} |
| 31 | <legend id="qtitle" data-hash="{{ hash }}">{{ lang.quarantine.remove }}</legend> |
| 32 | {% endif %} |
| 33 | <div id="qid_error" style="display:none" class="alert alert-danger"></div> |
| 34 | <div class="form-group"> |
| 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 class="form-group"> |
| 40 | <label for="qid_detail_subj"><h4>{{ lang.quarantine.subj }}:</h4></label> |
| 41 | <p id="qid_detail_subj"></p> |
| 42 | </div> |
| 43 | <div class="form-group"> |
| 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 class="form-group"> |
| 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 class="form-group"> |
| 52 | <label for="qid_detail_recipients"><h4>{{ lang.quarantine.recipients }}:</h4></label> |
| 53 | <p id="qid_detail_recipients"></p> |
| 54 | </div> |
| 55 | <div class="form-group"> |
| 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 class="form-group"> |
| 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 | |
| 78 | |
| 79 | <script type='text/javascript'> |
| 80 | var lang = {{ lang_quarantine|raw }}; |
| 81 | </script> |
| 82 | {% endblock %} |