blob: 867371177c56ccbc88b9cf5007c737e061a142a7 [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001{% extends 'base.twig' %}
2
3{% block content %}
4<ul class="nav nav-tabs" role="tablist">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01005 <li role="presentation" class="nav-item"><button class="nav-link active" data-bs-target="#tab-containers" aria-controls="tab-containers" role="tab" data-bs-toggle="tab">{{ lang.debug.system_containers }}</button></li>
6 <li class="nav-item dropdown">
7 <a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#">{{ lang.debug.logs }}</a>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01008 <ul class="dropdown-menu">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01009 <li role="presentation"><span class="dropdown-header fs-6">{{ lang.debug.in_memory_logs }}</span></li>
10 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-postfix-logs" aria-selected="false" aria-controls="tab-postfix-logs" role="tab" data-bs-toggle="tab">Postfix</button></li>
11 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-dovecot-logs" aria-selected="false" aria-controls="tab-dovecot-logs" role="tab" data-bs-toggle="tab">Dovecot</button></li>
12 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-sogo-logs" aria-selected="false" aria-controls="tab-sogo-logs" role="tab" data-bs-toggle="tab">SOGo</button></li>
13 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-netfilter-logs" aria-selected="false" aria-controls="tab-netfilter-logs" role="tab" data-bs-toggle="tab">Netfilter</button></li>
14 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-autodiscover-logs" aria-selected="false" aria-controls="tab-autodiscover-logs" role="tab" data-bs-toggle="tab">Autodiscover</button></li>
15 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-watchdog-logs" aria-selected="false" aria-controls="tab-watchdog-logs" role="tab" data-bs-toggle="tab">Watchdog</button></li>
16 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-acme-logs" aria-selected="false" aria-controls="tab-acme-logs" role="tab" data-bs-toggle="tab">ACME</button></li>
17 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-api-logs" aria-selected="false" aria-controls="tab-api-logs" role="tab" data-bs-toggle="tab">API</button></li>
18 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-api-rl" aria-selected="false" aria-controls="tab-api-rl" role="tab" data-bs-toggle="tab">Ratelimits</button></li>
19 <li role="presentation"><span class="dropdown-header fs-6">{{ lang.debug.external_logs }}</span></li>
20 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-rspamd-history" aria-selected="false" aria-controls="tab-rspamd-history" role="tab" data-bs-toggle="tab">Rspamd</button></li>
21 <li role="presentation"><span class="dropdown-header fs-6">{{ lang.debug.static_logs }}</span></li>
22 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-ui" aria-selected="false" aria-controls="tab-ui" role="tab" data-bs-toggle="tab">Mailcow UI</button></li>
23 <li role="presentation"><button class="dropdown-item" data-bs-target="#tab-sasl" aria-selected="false" aria-controls="tab-sasl" role="tab" data-bs-toggle="tab">SASL</button></li>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010024 </ul>
25 </li>
26</ul>
27
28<div class="row">
29 <div class="col-md-12">
30 <div class="tab-content" style="padding-top:20px">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010031 <div role="tabpanel" class="tab-pane active" id="tab-containers">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010032
33 <div class="card mb-4">
34 <div class="card-header fs-5">
35 <span>{{ ui_texts.title_name|raw }}</span>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010036 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010037 <div class="card-body">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010038 <div class="row">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010039 <div class="col-sm-12 col-md-4 d-flex flex-column">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010040 <img class="main-logo img-responsive my-auto m-auto" alt="mailcow-logo" style="max-width: 85%; max-height: 85%;" src="{{ logo|default('/img/cow_mailcow.svg') }}">
41 <img class="main-logo-dark img-responsive my-auto m-auto" alt="mailcow-logo-dark" style="max-width: 85%; max-height: 85%;" src="{{ logo_dark|default('/img/cow_mailcow.svg') }}">
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010042 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010043 <div class="col-sm-12 col-md-8">
44 <div class="table-responsive" style="margin-top: 10px;">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010045 <table class="table table-striped table-condensed w-100">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010046 <tbody>
47 <tr>
48 <td>Hostname</td>
49 <td class="text-break"><div>
50 <p><b>{{ hostname }}</b></p>
51 </div></td>
52 </tr>
53 <tr>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010054 <td>{{ lang.debug.architecture }}</td>
55 <td class="text-break"><div>
56 <p id="host_architecture">-</p>
57 </div></td>
58 </tr>
59 <tr>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010060 <td>IPs</td>
61 <td class="text-break">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010062 {% if ip_check == 1 %}
63 <span class="d-none" id="host_ipv4">-</span>
64 <span class="d-none mb-2" id="host_ipv6">-</span>
65 <button class="d-block btn btn-primary btn-sm" id="host_show_ip">
66 <span class="text">{{ lang.debug.show_ip }}</span>
67 <div class="spinner-border spinner-border-sm d-none" role="status">
68 <span class="visually-hidden">Loading...</span>
69 </div>
70 </button>
71 {% else %}
72 <span class="d-block">{{ lang.admin.ip_check_disabled|raw }}</span>
73 {% endif %}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010074 </td>
75 </tr>
76 <tr>
77 <td>Version</td>
78 <td class="text-break">
79 <div class="fw-bolder">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010080 <p ><a href="#" id="mailcow_version">{{ mailcow_info.version_tag }}</a></p>
81 <p id="mailcow_update"></p>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010082 </div>
83 </td>
84 </tr>
85 <tr>
86 <td>{{ lang.debug.current_time }}</td>
87 <td id="host_date" class="text-break">-</td>
88 </tr>
89 <tr>
90 <td>{{ lang.debug.timezone }}</td>
91 <td class="text-break">{{ timezone }}</td>
92 </tr>
93 <tr>
94 <td>{{ lang.debug.uptime }}</td>
95 <td id="host_uptime" class="text-break">-</td>
96 </tr>
97 <tr>
98 <td>{{ lang.debug.disk_usage }}</td>
99 <td class="text-break">
100 <div>
101 <span class="d-block"><i class="bi bi-hdd-fill"></i> {{ vmail_df[0] }}</span>
102 <span class="d-block">{{ vmail_df[2] }} / {{ vmail_df[1] }} ({{ vmail_df[4] }})</span>
103 </div>
104 <div class="mt-2 mb-4">
105 <div class="progress">
106 <div class="progress-bar bg-info" role="progressbar" style="width:{{ vmail_df[4] }}"></div>
107 </div>
108 </div>
109 </td>
110 </tr>
111 </tbody>
112 </table>
113 </div>
114 </div>
115
116 <div class="col-sm-6 mt-4">
117 <h3>CPU</h3>
118 <h5><span id="host_cpu_cores">-</span> {{ lang.debug.cores }} @ <span id="host_cpu_usage"></span></h5>
119 <canvas id="host_cpu_chart" width="400" height="200"></canvas>
120 </div>
121 <div class="col-sm-6 mt-4">
122 <h3>{{ lang.debug.memory|upper}}</h3>
123 <h5><span id="host_memory_total">-</span> @ <span id="host_memory_usage"></span></h5>
124 <canvas id="host_mem_chart" width="400" height="200"></canvas>
125 </div>
126
127 <div class="col-sm-12">
128 <legend class="mt-4">
129 {{ lang.admin.guid_and_license }}
130 </legend>
131 <hr />
132 <div id="license">
133 <form class="form-horizontal" autocapitalize="none" autocorrect="off" role="form" method="post">
134 <div class="row">
135 <label class="control-label col-sm-3" for="guid">{{ lang.admin.guid }}:</label>
136 <div class="col-sm-9">
137 <div class="input-group">
138 <span class="input-group-text">
139 <i class="bi bi-suit-heart{% if gal.valid == true %}-fill text-danger{% endif %}"></i>
140 </span>
141 <input type="text" id="guid" class="form-control" value="{{ license_guid }}" readonly>
142 </div>
143 <p class="text-muted">
144 {{ lang.admin.customer_id }}: {{ gal.c|default('?')|raw }} -
145 {{ lang.admin.service_id }}: {{ gal.s|default('?')|raw }} -
146 {{ lang.admin.sal_level }}: {{ gal.m|default('?')|raw }}
147 </p>
148 </div>
149 </div>
150 <div class="row">
151 <div class="offset-sm-3 col-sm-9">
152 <p class="text-muted">{{ lang.admin.license_info|raw }}</p>
153 <div class="btn-group">
154 <button class="btn btn-sm d-block d-sm-inline btn-success" name="license_validate_now" type="submit" href="#">{{ lang.admin.validate_license_now }}</button>
155 </div>
156 </div>
157 </div>
158 </form>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100159 </div>
160 </div>
161 </div>
162 </div>
163 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100164
165
166
167 <!-- container info -->
168 <div class="card mb-4">
169 <div class="card-header fs-5">
170 <span>{{ lang.debug.containers_info }}</span>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100171 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100172 <div class="card-body p-0">
173 <div class="row mx-0">
174 <!-- solr info -->
175 <div class="col-md-6 col-sm-12 p-2">
176 <div class="list-group-item p-0">
177 <div class="d-flex p-2 list-group-header">
178 <div>
179 <span class="fw-bold">solr-mailcow</span>
180 {% if containers["solr-mailcow"].State.Running == 1 %}
181 <span class="d-block d-md-inline">({{ containers["solr-mailcow"].Config.Image }})</span>
182 {% endif %}
183 {% if containers["solr-mailcow"].State.Running == 1 %}
184 <small class="d-block">({{ lang.debug.started_on }} <span class="parse_date">{{ containers["solr-mailcow"].State.StartedAtHR }}</span>)</small>
185 {% elseif containers["solr-mailcow"].State.Running != 1 %}
186 <small class="d-block">{{ lang.debug.container_disabled }}</small>
187 {% endif %}
188 {% if containers["solr-mailcow"].State.Running == 1 %}
189 <span class="badge fs-7 bg-success loader" style="min-width:100px">
190 {{ lang.debug.container_running }}
191 <span class="loader-dot">.</span>
192 <span class="loader-dot">.</span>
193 <span class="loader-dot">.</span>
194 </span>
195 {% elseif containers["solr-mailcow"].State.Running != 1 %}
196 <span class="badge fs-7 bg-danger" style="min-width:100px">
197 {{ lang.debug.container_stopped }}
198 <i class="bi-x ms-1"></i>
199 </span>
200 {% endif %}
201 </div>
202 {% if containers["solr-mailcow"].State.Running == 1 %}
203 <div class="mt-auto ms-auto">
204 <button class="btn btn-light" type="button" data-bs-toggle="collapse" data-bs-target="#solr-mailcowCollapse" aria-expanded="false" aria-controls="solr-mailcowCollapse">
205 <i class="bi bi-caret-down-fill caret"></i>
206 </button>
207 </div>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100208 {% endif %}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100209 </div>
210 {% if containers["solr-mailcow"].State.Running == 1 %}
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100211 <div class="collapse p-0 list-group-details container-details-collapse" id="solr-mailcowCollapse" data-id="{{ containers["solr-mailcow"].Id }}">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100212 <div class="row p-2 pt-4">
213 <div class="col-sm-3">
214 <p><img class="img-responsive" alt="Solr Logo" width="128px" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABlCAYAAAAI2qyuAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAXEUAAFxFAbktYiwAAAAYdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjEuNWRHWFIAABv7SURBVHhe7V0JuBxVlX4JMy6jM4qOC4rp6qWq+jW+ruoXkIjoS1d3EhYXRvNkFHFBYECUAXGAASEOyiLIrigOEpDoACIqwogLiwMSkIghYF4viSFhiUGWCAQIyXuZ/9w+3V3VdXtfee/+33e+16/uqXtv1T2n7j33nnvukIJCP7BjbOzvsgt0O5cyjsymzG9mU8YvcylzIucYT2Ydcz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9B16+0Q2JXScqCctB0WbE0F1aYeCHmeA3rel69mvdju1DIJsDtPvI9nYnPsGCdLEQvEqkakVArSIVBXjsb4ptQ2qaTC9PAvhd2gWSfga/8ZCP9iI2wdEC4clXwoBPAkPWR9C79vBs9jpXurEMreijy+3mlHQ3KRp22usjIFafYaPRj/uqmNLiqEPvUY87PI10vsfZ8jQhNRwDvpkcl4b+t1Lb4n39cywuHd34E6eYLq4V0+jWunGKFEKkrnj9BmMjFlb/0Q6WtBNLEhna5XCtJh0HFceKnfx8uvmK7sDqGsbaZmX9XtY8AovjDK82yukpP1PIT9cSjsJiGY9YN3k3AupWATXFTbQLmVaymNkDSkqFKQLoGGUpGgfTZe8EbPC+4UafFHIIhn9vLIYfIGpl6toV6yAcK7+Z0Rst7D2XcSs2nWTVZmdbIm9UDCdy64UpAug2ZWCt164gx06/fgBbtnWRomNNQTuPfXES1+SiQwOm9oaEnvDmOsQOEA08QZqJN0Fq8OPY8v/LUYVjZ8OGdrWDLbLCya+s5h95Nok7vRC7+fby5BKUiPQeE+zeDICPlGURhN9DJfZVvjcijQMnydL6PogRjSnGwER8gWSfPUal8cB2tjyWzy+kUdT4Lg3ADKg9zj/yk80yYMt+7E81xAdlavQ5vSDkTU6aOgM+g4BROE+pyH9/wfZO+R9wC1CbP7QDOVtE+/SDRxwUkKHgwN/T/fvy7K4dvMgwAAAABJRU5ErkJggg==" /></p>
215 </div>
216 <div class="col-sm-9">
217 {% if solr_status != false %}
218 <div class="progress">
219 <div class="progress-bar bg-info" role="progressbar" style="width:{{ solr_status.jvm.memory.raw['used%']|round }}%"></div>
220 </div>
221 <p>{{ lang.debug.jvm_memory_solr }}: {{ (solr_status.jvm.memory.total - solr_status.jvm.memory.free) }} / {{ solr_status.jvm.memory.total }}
222 ({{ solr_status.jvm.memory.raw['used%']|round }}%)</p>
223 <hr>
224 <span class="d-block">{{ lang.debug.uptime }}: {{ solr_uptime }}h</span>
225 <span class="d-block">{{ lang.debug.started_at }}: <span class="parse_date">{{ solr_status.status['dovecot-fts'].startTime }}</span></span>
226 <span class="d-block">{{ lang.debug.last_modified }}: <span class="parse_date">{{ solr_status.status['dovecot-fts'].index.lastModified }}</span></span>
227 <span class="d-block">{{ lang.debug.size }}: {{ solr_status.status['dovecot-fts'].index.size }}</span>
228 <span class="d-block"><i class="bi bi-file-text"></i> {{ lang.debug.docs }}: {{ solr_status.status['dovecot-fts'].index.numDocs }}</span>
229 {% else %}
230 <span class="d-block">{{ lang.debug.solr_dead }}</span>
231 {% endif %}
232 </div>
233 <div class="mt-4 col-sm-12 col-md-6 d-flex flex-column">
234 <h6>Disk I/O</h6>
235 <div class="spinner-border my-4 mx-auto" role="status">
236 <span class="visually-hidden">Loading...</span>
237 </div>
238 <canvas class="d-none" id="solr-mailcow_DiskIOChart" width="400" height="200"></canvas>
239 </div>
240 <div class="mt-4 col-sm-12 col-md-6 d-flex flex-column">
241 <h6>Net I/O</h6>
242 <div class="spinner-border my-4 mx-auto" role="status">
243 <span class="visually-hidden">Loading...</span>
244 </div>
245 <canvas class="d-none" id="solr-mailcow_NetIOChart" width="400" height="200"></canvas>
246 </div>
247 <div class="col-sm-12 d-flex" style="height: 40px">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100248 <a href data-bs-toggle="modal"
249 data-container="solr-mailcow"
250 data-bs-target="#RestartContainer"
251 class="btn btn-sm btn-secondary d-flex align-items-center justify-content-center mb-2 ms-auto"
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100252 style="height: 30px;">{{ lang.debug.restart_container }}
253 <i class="ms-1 bi
254 {% if containers["solr-mailcow"].State.Running == 1 %}
255 bi-record-fill text-success
256 {% elseif containers["solr-mailcow"].State %}
257 bi-record-fill text-danger
258 {% else %}
259 default
260 {% endif %}
261 "
262 ></i>
263 </a>
264 </div>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100265 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100266 </div>
267 {% endif %}
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100268 </div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100269 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100270
271 <!-- rest of the containers -->
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100272 {% for container, container_info in containers %}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100273 {% if container != "solr-mailcow" %}
274 <div class="col-md-6 col-sm-12 p-2">
275 <div class="list-group-item p-0">
276 <div class="d-flex p-2 list-group-header">
277 <div>
278 <span class="fw-bold">{{ container }}</span>
279 <span class="d-block d-md-inline">({{ container_info.Config.Image }})</span>
280 <small class="d-block">({{ lang.debug.started_on }} <span class="parse_date">{{ container_info.State.StartedAtHR }}</span>)</small>
281 {% if container_info.State.Running == 1 %}
282 <span class="badge fs-7 bg-success loader" style="min-width:100px">
283 {{ lang.debug.container_running }}
284 <span class="loader-dot">.</span>
285 <span class="loader-dot">.</span>
286 <span class="loader-dot">.</span>
287 </span>
288 {% elseif container_info.State %}
289 <span class="badge fs-7 bg-danger" style="min-width:100px">
290 {{ lang.debug.container_stopped }}
291 <i class="bi-x ms-1"></i>
292 </span>
293 {% endif %}
294 </div>
295 <div class="mt-auto ms-auto">
296 <button class="btn btn-light" type="button" data-bs-toggle="collapse" data-bs-target="#{{ container }}Collapse" aria-expanded="false" aria-controls="{{ container }}Collapse">
297 <i class="bi bi-caret-down-fill caret"></i>
298 </button>
299 </div>
300 </div>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100301 <div class="collapse p-0 list-group-details container-details-collapse" id="{{ container }}Collapse" data-id="{{ container_info.Id }}">
302 <div class="row p-2 pt-4">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100303 <div class="mt-4 col-sm-12 col-md-6 d-flex flex-column">
304 <h6>Disk I/O</h6>
305 <div class="spinner-border my-4 mx-auto" role="status">
306 <span class="visually-hidden">Loading...</span>
307 </div>
308 <canvas class="d-none" id="{{ container }}_DiskIOChart" width="400" height="200"></canvas>
309 </div>
310 <div class="mt-4 col-sm-12 col-md-6 d-flex flex-column">
311 <h6>Net I/O</h6>
312 <div class="spinner-border my-4 mx-auto" role="status">
313 <span class="visually-hidden">Loading...</span>
314 </div>
315 <canvas class="d-none" id="{{ container }}_NetIOChart" width="400" height="200"></canvas>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100316 </div>
317 <div class="col-12 d-flex" style="height: 40px">
318 <a href data-bs-toggle="modal"
319 data-container="{{ container }}"
320 data-bs-target="#RestartContainer"
321 class="btn btn-sm btn-secondary d-flex align-items-center justify-content-center mb-2 ms-auto"
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100322 style="height: 30px;">{{ lang.debug.restart_container }}
323 <i class="ms-1 bi
324 {% if container_info.State.Running == 1 %}
325 bi-record-fill text-success
326 {% elseif container_info.State %}
327 bi-record-fill text-danger
328 {% else %}
329 default
330 {% endif %}
331 "
332 ></i>
333 </a>
334 </div>
335 </div>
336 </div>
337 </div>
338 </div>
339 {% endif %}
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100340 {% endfor %}
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100341 </div>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100342 </div>
343 </div>
344 </div>
345
346 <div role="tabpanel" class="tab-pane" id="tab-postfix-logs">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100347 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
348 <div class="card">
349 <div class="card-header d-flex align-items-center fs-5">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100350 <span class="mt-2 ms-2">Postfix</span>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100351 <div class="btn-group ms-auto">
352 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_postfix_logs" data-table="postfix_log">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100353 </div>
354 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100355 <div class="card-body">
356 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
357 <ul class="dropdown-menu">
358 <li><a class="dropdown-item add_log_lines" data-post-process="general_syslog" data-table="postfix_log" data-log-url="postfix" data-nrows="100" href="#">+ 100</a></li>
359 <li><a class="dropdown-item add_log_lines" data-post-process="general_syslog" data-table="postfix_log" data-log-url="postfix" data-nrows="1000" href="#">+ 1000</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100360 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
361 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="postfix_log" data-table="postfix_log" href="#">{{ lang.datatables.expand_all }}</a></li>
362 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="postfix_log" data-table="postfix_log" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100363 </ul>
364 <table id="postfix_log" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100365 </div>
366 </div>
367 </div>
368
369 <div role="tabpanel" class="tab-pane" id="tab-ui">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100370 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
371 <div class="card">
372 <div class="card-header d-flex align-items-center fs-5">
373 <span class="mt-2 ms-2">Mailcow UI</span>
374 <div class="btn-group ms-auto">
375 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_ui_logs" data-table="ui_logs">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100376 </div>
377 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100378 <div class="card-body">
379 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
380 <ul class="dropdown-menu">
381 <li><a class="dropdown-item add_log_lines" data-post-process="mailcow_ui" data-table="ui_logs" data-log-url="ui" data-nrows="100" href="#">+ 100</a></li>
382 <li><a class="dropdown-item add_log_lines" data-post-process="mailcow_ui" data-table="ui_logs" data-log-url="ui" data-nrows="1000" href="#">+ 1000</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100383 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
384 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="ui_logs" data-table="ui_logs" href="#">{{ lang.datatables.expand_all }}</a></li>
385 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="ui_logs" data-table="ui_logs" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100386 </ul>
387 <table id="ui_logs" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100388 </div>
389 </div>
390 </div>
391
392 <div role="tabpanel" class="tab-pane" id="tab-sasl">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100393 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
394 <div class="card">
395 <div class="card-header d-flex align-items-center fs-5">
396 <span class="mt-2 ms-2">SASL</span>
397 <div class="btn-group ms-auto">
398 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_sasl_logs" data-table="sasl_logs">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100399 </div>
400 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100401 <div class="card-body">
402 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
403 <ul class="dropdown-menu">
404 <li><a class="dropdown-item add_log_lines" data-post-process="sasl_log_table" data-table="sasl_logs" data-log-url="ui" data-nrows="100" href="#">+ 100</a></li>
405 <li><a class="dropdown-item add_log_lines" data-post-process="sasl_log_table" data-table="sasl_logs" data-log-url="ui" data-nrows="1000" href="#">+ 1000</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100406 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
407 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="sasl_logs" data-table="sasl_logs" href="#">{{ lang.datatables.expand_all }}</a></li>
408 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="sasl_logs" data-table="sasl_logs" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100409 </ul>
410 <table id="sasl_logs" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100411 </div>
412 </div>
413 </div>
414
415 <div role="tabpanel" class="tab-pane" id="tab-dovecot-logs">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100416 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
417 <div class="card">
418 <div class="card-header d-flex align-items-center fs-5">
419 <span class="mt-2 ms-2">Dovecot</span>
420 <div class="btn-group ms-auto">
421 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_dovecot_logs" data-table="dovecot_log">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100422 </div>
423 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100424 <div class="card-body">
425 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
426 <ul class="dropdown-menu">
427 <li><a class="dropdown-item add_log_lines" data-post-process="general_syslog" data-table="dovecot_log" data-log-url="dovecot" data-nrows="100" href="#">+ 100</a></li>
428 <li><a class="dropdown-item add_log_lines" data-post-process="general_syslog" data-table="dovecot_log" data-log-url="dovecot" data-nrows="1000" href="#">+ 1000</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100429 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
430 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="dovecot_log" data-table="dovecot_log" href="#">{{ lang.datatables.expand_all }}</a></li>
431 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="dovecot_log" data-table="dovecot_log" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100432 </ul>
433 <table id="dovecot_log" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100434 </div>
435 </div>
436 </div>
437
438 <div role="tabpanel" class="tab-pane" id="tab-sogo-logs">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100439 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
440 <div class="card">
441 <div class="card-header d-flex align-items-center fs-5">
442 <span class="mt-2 ms-2">SOGo</span>
443 <div class="btn-group ms-auto">
444 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_sogo_logs" data-table="sogo_log">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100445 </div>
446 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100447 <div class="card-body">
448 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
449 <ul class="dropdown-menu">
450 <li><a class="dropdown-item add_log_lines" data-post-process="general_syslog" data-table="sogo_log" data-log-url="sogo" data-nrows="100" href="#">+ 100</a></li>
451 <li><a class="dropdown-item add_log_lines" data-post-process="general_syslog" data-table="sogo_log" data-log-url="sogo" data-nrows="1000" href="#">+ 1000</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100452 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
453 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="sogo_log" data-table="sogo_log" href="#">{{ lang.datatables.expand_all }}</a></li>
454 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="sogo_log" data-table="sogo_log" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100455 </ul>
456 <table id="sogo_log" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100457 </div>
458 </div>
459 </div>
460
461 <div role="tabpanel" class="tab-pane" id="tab-netfilter-logs">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100462 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
463 <div class="card">
464 <div class="card-header d-flex align-items-center fs-5">
465 <span class="mt-2 ms-2">Netfilter</span>
466 <div class="btn-group ms-auto">
467 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_netfilter_logs" data-table="netfilter_log">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100468 </div>
469 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100470 <div class="card-body">
471 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
472 <ul class="dropdown-menu">
473 <li><a class="dropdown-item add_log_lines" data-post-process="general_syslog" data-table="netfilter_log" data-log-url="netfilter" data-nrows="100" href="#">+ 100</a></li>
474 <li><a class="dropdown-item add_log_lines" data-post-process="general_syslog" data-table="netfilter_log" data-log-url="netfilter" data-nrows="1000" href="#">+ 1000</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100475 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
476 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="netfilter_log" data-table="netfilter_log" href="#">{{ lang.datatables.expand_all }}</a></li>
477 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="netfilter_log" data-table="netfilter_log" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100478 </ul>
479 <table id="netfilter_log" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100480 </div>
481 </div>
482 </div>
483
484 <div role="tabpanel" class="tab-pane" id="tab-rspamd-history">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100485 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
486 <div class="card">
487 <div class="card-header d-flex align-items-center fs-5">
488 <span class="mt-2 ms-2">Rspamd history</span>
489 <div class="btn-group ms-auto">
490 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_rspamd_history" data-table="rspamd_history">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100491 </div>
492 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100493 <div class="card-body">
494 <legend>{{ lang.debug.chart_this_server }}</legend><hr />
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100495 <div id="chart-container">
496 <canvas id="rspamd_donut" style="width:100%;height:400px"></canvas>
497 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100498 <legend>{{ lang.debug.history_all_servers }}</legend><hr />
499 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
500 <ul class="dropdown-menu">
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100501 <li><a class="dropdown-item add_log_lines" data-post-process="rspamd_history" data-table="rspamd_history" data-log-url="rspamd-history" data-nrows="100" href="#">+ 100</a></li>
502 <li><a class="dropdown-item add_log_lines" data-post-process="rspamd_history" data-table="rspamd_history" data-log-url="rspamd-history" data-nrows="1000" href="#">+ 1000</a></li>
503 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
504 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="rspamd_history" data-table="rspamd_history" href="#">{{ lang.datatables.expand_all }}</a></li>
505 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="rspamd_history" data-table="rspamd_history" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100506 </ul>
507 <table id="rspamd_history" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100508 </div>
509 </div>
510 </div>
511
512 <div role="tabpanel" class="tab-pane" id="tab-autodiscover-logs">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100513 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
514 <div class="card">
515 <div class="card-header d-flex align-items-center fs-5">
516 <span class="mt-2 ms-2">Autodiscover</span>
517 <div class="btn-group ms-auto">
518 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_autodiscover_logs" data-table="autodiscover_log">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100519 </div>
520 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100521 <div class="card-body">
522 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
523 <ul class="dropdown-menu">
524 <li><a class="dropdown-item add_log_lines" data-post-process="autodiscover_log" data-table="autodiscover_log" data-log-url="autodiscover" data-nrows="100" href="#">+ 100</a></li>
525 <li><a class="dropdown-item add_log_lines" data-post-process="autodiscover_log" data-table="autodiscover_log" data-log-url="autodiscover" data-nrows="1000" href="#">+ 1000</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100526 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
527 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="autodiscover_log" data-table="autodiscover_log" href="#">{{ lang.datatables.expand_all }}</a></li>
528 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="autodiscover_log" data-table="autodiscover_log" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100529 </ul>
530 <table id="autodiscover_log" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100531 </div>
532 </div>
533 </div>
534
535 <div role="tabpanel" class="tab-pane" id="tab-watchdog-logs">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100536 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
537 <div class="card">
538 <div class="card-header d-flex align-items-center fs-5">
539 <span class="mt-2 ms-2">Watchdog</span>
540 <div class="btn-group ms-auto">
541 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_watchdog_logs" data-table="watchdog_log">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100542 </div>
543 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100544 <div class="card-body">
545 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
546 <ul class="dropdown-menu">
547 <li><a class="dropdown-item add_log_lines" data-post-process="watchdog" data-table="watchdog_log" data-log-url="watchdog" data-nrows="100" href="#">+ 100</a></li>
548 <li><a class="dropdown-item add_log_lines" data-post-process="watchdog" data-table="watchdog_log" data-log-url="watchdog" data-nrows="1000" href="#">+ 1000</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100549 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
550 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="watchdog_log" data-table="watchdog_log" href="#">{{ lang.datatables.expand_all }}</a></li>
551 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="watchdog_log" data-table="watchdog_log" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100552 </ul>
553 <table id="watchdog_log" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100554 </div>
555 </div>
556 </div>
557
558 <div role="tabpanel" class="tab-pane" id="tab-acme-logs">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100559 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
560 <div class="card">
561 <div class="card-header d-flex align-items-center fs-5">
562 <span class="mt-2 ms-2">ACME</span>
563 <div class="btn-group ms-auto">
564 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_acme_logs" data-table="acme_log">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100565 </div>
566 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100567 <div class="card-body">
568 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
569 <ul class="dropdown-menu">
570 <li><a class="dropdown-item add_log_lines" data-post-process="general_syslog" data-table="acme_log" data-log-url="acme" data-nrows="100" href="#">+ 100</a></li>
571 <li><a class="dropdown-item add_log_lines" data-post-process="general_syslog" data-table="acme_log" data-log-url="acme" data-nrows="1000" href="#">+ 1000</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100572 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
573 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="acme_log" data-table="acme_log" href="#">{{ lang.datatables.expand_all }}</a></li>
574 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="acme_log" data-table="acme_log" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100575 </ul>
576 <table id="acme_log" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100577 </div>
578 </div>
579 </div>
580
581 <div role="tabpanel" class="tab-pane" id="tab-api-logs">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100582 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
583 <div class="card">
584 <div class="card-header d-flex align-items-center fs-5">
585 <span class="mt-2 ms-2">API</span>
586 <div class="btn-group ms-auto">
587 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_api_logs" data-table="api_log">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100588 </div>
589 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100590 <div class="card-body">
591 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
592 <ul class="dropdown-menu">
593 <li><a class="dropdown-item add_log_lines" data-post-process="apilog" data-table="api_log" data-log-url="api" data-nrows="100" href="#">+ 100</a></li>
594 <li><a class="dropdown-item add_log_lines" data-post-process="apilog" data-table="api_log" data-log-url="api" data-nrows="1000" href="#">+ 1000</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100595 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
596 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="api_log" data-table="api_log" href="#">{{ lang.datatables.expand_all }}</a></li>
597 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="api_log" data-table="api_log" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100598 </ul>
599 <table id="api_log" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100600 </div>
601 </div>
602 </div>
603
604 <div role="tabpanel" class="tab-pane" id="tab-api-rl">
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100605 <div class="debug-log-info">{{ lang.debug.log_info|format(log_lines+1)|raw }}</div>
606 <div class="card">
607 <div class="card-header d-flex align-items-center fs-5">
608 <span class="mt-2 ms-2">Ratelimits</span>
609 <div class="btn-group ms-auto">
610 <button class="btn btn-sm btn-secondary refresh_table" data-draw="draw_rl_logs" data-table="rl_log">{{ lang.admin.refresh }}</button>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100611 </div>
612 </div>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100613 <div class="card-body">
614 <a class="btn btn-sm btn-secondary dropdown-toggle mb-4" data-bs-toggle="dropdown" href="#">{{ lang.mailbox.quick_actions }}</a>
615 <ul class="dropdown-menu">
616 <li><a class="dropdown-item add_log_lines" data-post-process="rllog" data-table="rl_log" data-log-url="ratelimited" data-nrows="100" href="#">+ 100</a></li>
617 <li><a class="dropdown-item add_log_lines" data-post-process="rllog" data-table="rl_log" data-log-url="ratelimited" data-nrows="1000" href="#">+ 1000</a></li>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100618 <li class="table_collapse_option"><hr class="dropdown-divider"></li>
619 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-expand="rl_log" data-table="rl_log" href="#">{{ lang.datatables.expand_all }}</a></li>
620 <li class="table_collapse_option"><a class="dropdown-item" data-datatables-collapse="rl_log" data-table="rl_log" href="#">{{ lang.datatables.collapse_all }}</a></li>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100621 </ul>
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100622 <p class="text-muted">{{ lang.admin.hash_remove_info|raw }}</p>
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100623 <table id="rl_log" class="table table-striped dt-responsive w-100"></table>
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100624 </div>
625 </div>
626 </div>
627
628 </div> <!-- /tab-content -->
629 </div> <!-- /col-md-12 -->
630</div> <!-- /row -->
631
632<script type='text/javascript'>
633 var lang = {{ lang_admin|raw }};
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100634 var lang_debug = {{ lang_debug|raw }};
635 var lang_datatables = {{ lang_datatables|raw }};
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100636 var csrf_token = '{{ csrf_token }}';
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100637 var log_pagination_size = Math.trunc('{{ log_pagination_size }}');
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +0100638</script>
639{% endblock %}