blob: b8b872559f17648054a7a60333ca12e3ffaa2b20 [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001{% extends 'base.twig' %}
2
3{% block content %}
4<div class="row">
5{% if quick_release or quick_delete %}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01006 <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 Benkard12a57352021-12-28 18:02:04 +010010 <legend>
11 {% if quick_release %}
12 {{ lang.quarantine.release }}
13 {% else %}
14 {{ lang.quarantine.remove }}
15 {% endif %}
16 </legend>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010017 <hr />
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010018 <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 Benkard1ba53812022-12-27 17:32:58 +010024 <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 Benkard12a57352021-12-28 18:02:04 +010028 {% if action == 'release' %}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010029 <legend id="qtitle" data-hash="{{ hash }}">{{ lang.quarantine.release }}</legend><hr />
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010030 {% endif %}
31 {% if action == 'delete' %}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010032 <legend id="qtitle" data-hash="{{ hash }}">{{ lang.quarantine.remove }}</legend><hr />
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010033 {% endif %}
34 <div id="qid_error" style="display:none" class="alert alert-danger"></div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010035 <div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010036 <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 Benkard1ba53812022-12-27 17:32:58 +010040 <div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010041 <label for="qid_detail_subj"><h4>{{ lang.quarantine.subj }}:</h4></label>
42 <p id="qid_detail_subj"></p>
43 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010044 <div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010045 <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 Benkard1ba53812022-12-27 17:32:58 +010048 <div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010049 <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 Benkard1ba53812022-12-27 17:32:58 +010052 <div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010053 <label for="qid_detail_recipients"><h4>{{ lang.quarantine.recipients }}:</h4></label>
54 <p id="qid_detail_recipients"></p>
55 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010056 <div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010057 <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 Benkard1ba53812022-12-27 17:32:58 +010062 <div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010063 {% 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 %}