2021-10-22 14:52:05 +08:00
|
|
|
{% extends 'base.twig' %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
{% if quick_release or quick_delete %}
|
2022-04-01 13:33:01 +08:00
|
|
|
<div class="offset-md-2 col-md-8">
|
2022-03-31 17:37:14 +08:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-header"><i class="bi bi-patch-exclamation-fill"></i> {{ lang.header.quarantine }}</div>
|
|
|
|
<div class="card-body">
|
2021-10-22 14:52:05 +08:00
|
|
|
<legend>
|
|
|
|
{% if quick_release %}
|
|
|
|
{{ lang.quarantine.release }}
|
|
|
|
{% else %}
|
|
|
|
{{ lang.quarantine.remove }}
|
|
|
|
{% endif %}
|
|
|
|
</legend>
|
2022-03-31 18:57:33 +08:00
|
|
|
<hr />
|
2021-10-22 14:52:05 +08:00
|
|
|
<p>{{ lang.quarantine.qhandler_success }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
{% if is_action_release_delete and is_hash_present %}
|
2022-04-01 13:33:01 +08:00
|
|
|
<div class="-offset-md-2 col-md-8">
|
2022-03-31 17:37:14 +08:00
|
|
|
<div class="card">
|
|
|
|
<div class="card-header"><i class="bi bi-patch-exclamation-fill"></i> {{ lang.header.quarantine }}</div>
|
|
|
|
<div class="card-body">
|
2021-10-22 14:52:05 +08:00
|
|
|
{% if action == 'release' %}
|
2022-03-31 18:57:33 +08:00
|
|
|
<legend id="qtitle" data-hash="{{ hash }}">{{ lang.quarantine.release }}</legend><hr />
|
2021-10-22 14:52:05 +08:00
|
|
|
{% endif %}
|
|
|
|
{% if action == 'delete' %}
|
2022-03-31 18:57:33 +08:00
|
|
|
<legend id="qtitle" data-hash="{{ hash }}">{{ lang.quarantine.remove }}</legend><hr />
|
2021-10-22 14:52:05 +08:00
|
|
|
{% endif %}
|
|
|
|
<div id="qid_error" style="display:none" class="alert alert-danger"></div>
|
2022-04-13 20:07:07 +08:00
|
|
|
<div>
|
2021-10-22 14:52:05 +08:00
|
|
|
<label for="qid_detail_symbols"><h4>{{ lang.quarantine.rspamd_result }}:</h4></label>
|
|
|
|
<p>{{ lang.quarantine.spam_score }}: <span id="qid_detail_score"></span></p>
|
|
|
|
<p id="qid_detail_symbols"></p>
|
|
|
|
</div>
|
2022-04-13 20:07:07 +08:00
|
|
|
<div>
|
2021-10-22 14:52:05 +08:00
|
|
|
<label for="qid_detail_subj"><h4>{{ lang.quarantine.subj }}:</h4></label>
|
|
|
|
<p id="qid_detail_subj"></p>
|
|
|
|
</div>
|
2022-04-13 20:07:07 +08:00
|
|
|
<div>
|
2021-10-22 14:52:05 +08:00
|
|
|
<label for="qid_detail_hfrom"><h4>{{ lang.quarantine.sender_header }}:</h4></label>
|
|
|
|
<p><span class="mail-address-item" id="qid_detail_hfrom"></span></p>
|
|
|
|
</div>
|
2022-04-13 20:07:07 +08:00
|
|
|
<div>
|
2021-10-22 14:52:05 +08:00
|
|
|
<label for="qid_detail_efrom"><h4>{{ lang.quarantine.sender }}:</h4></label>
|
|
|
|
<p><span class="mail-address-item" id="qid_detail_efrom"></span></p>
|
|
|
|
</div>
|
2022-04-13 20:07:07 +08:00
|
|
|
<div>
|
2021-10-22 14:52:05 +08:00
|
|
|
<label for="qid_detail_recipients"><h4>{{ lang.quarantine.recipients }}:</h4></label>
|
|
|
|
<p id="qid_detail_recipients"></p>
|
|
|
|
</div>
|
2022-04-13 20:07:07 +08:00
|
|
|
<div>
|
2021-10-22 14:52:05 +08:00
|
|
|
<label for="qid_detail_fuzzy"><h4>Fuzzy Hashes:</h4></label>
|
|
|
|
<p id="qid_detail_fuzzy"></p>
|
|
|
|
</div>
|
|
|
|
<div id="qactions">
|
|
|
|
<form method="post" autofill="off">
|
2022-04-13 20:07:07 +08:00
|
|
|
<div>
|
2021-10-22 14:52:05 +08:00
|
|
|
{% if action == 'release' %}
|
|
|
|
<button type="submit" class="btn btn-success" name="quick_release" value="{{ hash }}">{{ lang.quarantine.confirm }}</button>
|
|
|
|
{% endif %}
|
|
|
|
{% if action == 'delete' %}
|
|
|
|
<button type="submit" class="btn btn-success" name="quick_delete" value="{{ hash }}">{{ lang.quarantine.confirm }}</button>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
</div> <!-- /row -->
|
|
|
|
|
|
|
|
|
|
|
|
<script type='text/javascript'>
|
|
|
|
var lang = {{ lang_quarantine|raw }};
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|