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 | <div class="col-md-12"> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 6 | <div class="card card-xs-lg"> |
| 7 | <div class="card-header d-flex"> |
| 8 | {{ lang.quarantine.quarantine }} <span class="badge bg-info table-lines"></span> |
| 9 | <div class="btn-group ms-auto"> |
| 10 | <button class="btn btn-xs btn-xs-lg btn-secondary refresh_table" data-draw="draw_quarantine_table" data-table="quarantinetable">{{ lang.quarantine.refresh }}</button> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 11 | </div> |
| 12 | </div> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 13 | <div class="card-body"> |
| 14 | <div class="mass-actions-quarantine mb-4"> |
| 15 | <div class="btn-group" data-acl="{{ acl.quarantine }}"> |
| 16 | <a class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary" id="toggle_multi_select_all" data-id="qitems" href="#"><i class="bi bi-check-all"></i> {{ lang.quarantine.toggle_all }}</a> |
| 17 | <a class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.quarantine.quick_actions }}</a> |
| 18 | <ul class="dropdown-menu"> |
| 19 | <li><a class="dropdown-item" data-datatables-expand="quarantinetable" data-table="quarantinetable" href="#">{{ lang.datatables.expand_all }}</a></li> |
| 20 | <li><a class="dropdown-item" data-datatables-collapse="quarantinetable" data-table="quarantinetable" href="#">{{ lang.datatables.collapse_all }}</a></li> |
| 21 | <li><hr class="dropdown-divider"></li> |
| 22 | <li><a class="dropdown-item" data-action="edit_selected" data-id="qitems" data-api-url='edit/qitem' data-api-attr='{"action":"release"}' href="#">{{ lang.quarantine.deliver_inbox }}</a></li> |
| 23 | <li><hr class="dropdown-divider"></li> |
| 24 | <li><a class="dropdown-item" 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> |
| 25 | <li><hr class="dropdown-divider"></li> |
| 26 | <li><a class="dropdown-item" data-action="delete_selected" data-id="qitems" data-api-url='delete/qitem' href="#">{{ lang.quarantine.remove }}</a></li> |
| 27 | </ul> |
| 28 | </div> |
| 29 | </div> |
| 30 | <p class="text-muted">{{ lang.quarantine.qinfo|raw }}</p> |
| 31 | <p> |
| 32 | {% if not quarantine_settings.retention_size or not quarantine_settings.max_size %} |
| 33 | <div class="alert alert-info">{{ lang.quarantine.disabled_by_config }}</div> |
| 34 | {% else %} |
| 35 | <p style="margin:10px" class="text-muted"> |
| 36 | {{ lang.quarantine.settings_info|format(quarantine_settings.retention_size, quarantine_settings.max_size)|raw }} |
| 37 | </p> |
| 38 | {% endif %} |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 39 | </p> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 40 | <table id="quarantinetable" class="table table-striped"></table> |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 41 | <div class="mass-actions-quarantine mt-4"> |
| 42 | <div class="btn-group" data-acl="{{ acl.quarantine }}"> |
| 43 | <a class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary" id="toggle_multi_select_all" data-id="qitems" href="#"><i class="bi bi-check-all"></i> {{ lang.quarantine.toggle_all }}</a> |
| 44 | <a class="btn btn-sm btn-xs-half d-block d-sm-inline btn-secondary dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.quarantine.quick_actions }}</a> |
| 45 | <ul class="dropdown-menu"> |
| 46 | <li><a class="dropdown-item" data-datatables-expand="quarantinetable" data-table="quarantinetable" href="#">{{ lang.datatables.expand_all }}</a></li> |
| 47 | <li><a class="dropdown-item" data-datatables-collapse="quarantinetable" data-table="quarantinetable" href="#">{{ lang.datatables.collapse_all }}</a></li> |
| 48 | <li><hr class="dropdown-divider"></li> |
| 49 | <li><a class="dropdown-item" data-action="edit_selected" data-id="qitems" data-api-url='edit/qitem' data-api-attr='{"action":"release"}' href="#">{{ lang.quarantine.deliver_inbox }}</a></li> |
| 50 | <li><hr class="dropdown-divider"></li> |
| 51 | <li><a class="dropdown-item" 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> |
| 52 | <li><hr class="dropdown-divider"></li> |
| 53 | <li><a class="dropdown-item" data-action="delete_selected" data-id="qitems" data-api-url='delete/qitem' href="#">{{ lang.quarantine.remove }}</a></li> |
| 54 | </ul> |
| 55 | </div> |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 56 | </div> |
| 57 | </div> |
| 58 | </div> |
| 59 | </div> <!-- /col-md-12 --> |
| 60 | </div> <!-- /row --> |
| 61 | |
| 62 | {% include 'modals/quarantine.twig' %} |
| 63 | |
| 64 | <script type='text/javascript'> |
| 65 | var acl = '{{ acl_json|raw }}'; |
| 66 | var lang = {{ lang_quarantine|raw }}; |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 67 | var lang_datatables = {{ lang_datatables|raw }}; |
Matthias Andreas Benkard | 12a5735 | 2021-12-28 18:02:04 +0100 | [diff] [blame] | 68 | var csrf_token = '{{ csrf_token }}'; |
| 69 | var pagination_size = '{{ pagination_size }}'; |
| 70 | var role = '{{ role }}'; |
| 71 | </script> |
| 72 | {% endblock %} |