blob: 3b51f9467ccd222c3a13742664c755bc9f29d28c [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001{% extends 'base.twig' %}
2
3{% block content %}
4<div class="row">
5 <div class="col-md-12">
6 <div class="panel panel-default panel-xs-lg">
7 <div class="panel-heading">
8 {{ lang.quarantine.quarantine }} <span class="badge badge-info table-lines"></span>
9 <div class="btn-group pull-right">
10 <button class="btn btn-xs btn-xs-lg btn-default refresh_table" data-draw="draw_quarantine_table" data-table="quarantinetable">{{ lang.quarantine.refresh }}</button>
11 <button type="button" class="btn btn-xs btn-xs-lg btn-default dropdown-toggle" data-toggle="dropdown">{{ lang.quarantine.table_size }}
12 <span class="caret"></span>
13 </button>
14 <ul class="dropdown-menu" data-table-id="quarantinetable" role="menu">
15 <li><a href="#" data-page-size="10">{{ lang.quarantine.table_size_show_n|format(10) }}</a></li>
16 <li><a href="#" data-page-size="20">{{ lang.quarantine.table_size_show_n|format(20) }}</a></li>
17 <li><a href="#" data-page-size="50">{{ lang.quarantine.table_size_show_n|format(50) }}</a></li>
18 <li><a href="#" data-page-size="100">{{ lang.quarantine.table_size_show_n|format(100) }}</a></li>
19 <li><a href="#" data-page-size="200">{{ lang.quarantine.table_size_show_n|format(200) }}</a></li>
20 <li><a href="#" data-page-size="500">{{ lang.quarantine.table_size_show_n|format(500) }}</a></li>
21 </ul>
22 </div>
23 </div>
24 <p style="margin:10px" class="help-block">{{ lang.quarantine.qinfo|raw }}</p>
25 <p style="margin:10px">
26 {% if not quarantine_settings.retention_size or not quarantine_settings.max_size %}
27 <div class="panel-body"><div class="alert alert-info">{{ lang.quarantine.disabled_by_config }}</div></div>
28 {% else %}
29 <p style="margin:10px" class="help-block">
30 {{ lang.quarantine.settings_info|format(quarantine_settings.retention_size, quarantine_settings.max_size)|raw }}
31 </p>
32 {% endif %}
33 </p>
34 <div class="table-responsive">
35 <table id="quarantinetable" class="table table-striped"></table>
36 </div>
37 <div class="mass-actions-quarantine">
38 <div class="btn-group" data-acl="{{ acl.quarantine }}">
39 <a class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default" id="toggle_multi_select_all" data-id="qitems" href="#"><i class="bi bi-check-all"></i> {{ lang.quarantine.toggle_all }}</a>
40 <a class="btn btn-sm btn-xs-half visible-xs-block visible-sm-inline visible-md-inline visible-lg-inline btn-default dropdown-toggle" data-toggle="dropdown" href="#">{{ lang.quarantine.quick_actions }} <span class="caret"></span></a>
41 <ul class="dropdown-menu">
42 <li><a data-action="edit_selected" data-id="qitems" data-api-url='edit/qitem' data-api-attr='{"action":"release"}' href="#">{{ lang.quarantine.deliver_inbox }}</a></li>
43 <li role="separator" class="divider"></li>
44 <li><a data-action="edit_selected" data-id="qitems" data-api-url='edit/qitem' data-api-attr='{"action":"learnspam"}' href="#">{{ lang.quarantine.learn_spam_delete }}</a></li>
45 <li role="separator" class="divider"></li>
46 <li><a data-action="delete_selected" data-id="qitems" data-api-url='delete/qitem' href="#">{{ lang.quarantine.remove }}</a></li>
47 </ul>
48 <div class="clearfix visible-xs"></div>
49 </div>
50 </div>
51 </div>
52 </div> <!-- /col-md-12 -->
53</div> <!-- /row -->
54
55{% include 'modals/quarantine.twig' %}
56
57<script type='text/javascript'>
58var acl = '{{ acl_json|raw }}';
59var lang = {{ lang_quarantine|raw }};
60var csrf_token = '{{ csrf_token }}';
61var pagination_size = '{{ pagination_size }}';
62var role = '{{ role }}';
63</script>
64{% endblock %}