2023-02-13 14:45:45 +00:00
|
|
|
{% import 'languages/'+lang|default('en')+'.html' as lang %}
|
2021-07-05 14:51:05 +00:00
|
|
|
{% from 'include/input_macros.html' import copy_to_clipboard %}
|
2020-07-01 20:39:15 +00:00
|
|
|
{% if table[0] != '' %}
|
|
|
|
{% set headers = table[0].split(':')[1] %}
|
|
|
|
{% set headers = headers.split(' ') %}
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#{{tables_head.0.strip()}}').on( 'page.dt', function () { $.getScript("/inc/fontawesome.min.js"); } )
|
|
|
|
.DataTable( {
|
|
|
|
"pageLength": 25,
|
|
|
|
"columnDefs": [
|
|
|
|
{
|
|
|
|
"searchable": false,
|
|
|
|
"orderable": false,
|
2020-09-15 05:56:43 +00:00
|
|
|
"targets": -1
|
2020-07-01 20:39:15 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
|
|
|
|
} );
|
|
|
|
} );
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
<table class="overview">
|
|
|
|
<tr class="overviewHead">
|
|
|
|
<td class="padding10 first-collumn">
|
2023-02-13 14:45:45 +00:00
|
|
|
{{lang.words.table|title()}} {{lang.words.name}}: {{tables_head.0}}
|
2020-07-01 20:39:15 +00:00
|
|
|
</td>
|
|
|
|
<td class="padding10 first-collumn">
|
2023-02-13 14:45:45 +00:00
|
|
|
{{lang.words.type|title()}}: {{tables_head.1}}
|
2020-07-01 20:39:15 +00:00
|
|
|
</td>
|
|
|
|
<td class="padding10 first-collumn">
|
2023-02-13 14:45:45 +00:00
|
|
|
{{lang.words.size|title()}}: {{tables_head.2|int() / 1024 / 1024}} Mb
|
2020-07-01 20:39:15 +00:00
|
|
|
</td>
|
|
|
|
<td class="padding10 first-collumn">
|
2023-02-13 14:45:45 +00:00
|
|
|
{{lang.words.used|title()}}: {{tables_head.3}}
|
2020-07-01 20:39:15 +00:00
|
|
|
</td>
|
2020-09-02 04:26:36 +00:00
|
|
|
<td>
|
2023-02-13 14:45:45 +00:00
|
|
|
<button title="{{lang.words.w_clear|title()}} {{lang.words.table}} {{tables_head.0}}" onclick="clearTable('{{tables_head.0}}')">{{lang.words.w_clear|title()}} {{lang.words.table}}</button>
|
2020-09-02 04:26:36 +00:00
|
|
|
</td>
|
2020-07-01 20:39:15 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<table class="overview hover order-column display compact" id="{{tables_head.0.strip()}}">
|
2021-01-12 05:05:53 +00:00
|
|
|
{% if table[0] != '' %}
|
2020-07-01 20:39:15 +00:00
|
|
|
{% for t in table %}
|
|
|
|
{% if t != '' %}
|
|
|
|
{% if loop.index == 1 %}
|
|
|
|
{% set headers = t.split(':')[1] %}
|
|
|
|
{% set headers = headers.split(' ') %}
|
|
|
|
<thead>
|
|
|
|
<tr class="overviewHead">
|
2021-01-12 05:05:53 +00:00
|
|
|
<th class="padding10" style="width: 10%; padding-left: 10px;">IP</th>
|
|
|
|
<th>Use</th>
|
|
|
|
<th>Exp</th>
|
2020-07-01 20:39:15 +00:00
|
|
|
<th>
|
|
|
|
{{headers.4.split('=')[0].split('(')[0]}}
|
|
|
|
</th>
|
|
|
|
{% if headers|length > 5 %}
|
|
|
|
<th>
|
|
|
|
{{headers.5.split('=')[0].split('(')[0]}}
|
|
|
|
</th>
|
|
|
|
{% endif %}
|
|
|
|
{% if headers|length > 6 %}
|
|
|
|
<th>
|
|
|
|
{{headers.6.split('=')[0].split('(')[0]}}
|
|
|
|
</th>
|
|
|
|
{% endif %}
|
|
|
|
{% if headers|length > 7 %}
|
|
|
|
<th>
|
|
|
|
{{headers.7.split('=')[0].split('(')[0]}}
|
|
|
|
</th>
|
|
|
|
{% endif %}
|
|
|
|
{% if headers|length > 8 %}
|
2023-10-04 18:58:39 +00:00
|
|
|
<th>
|
|
|
|
{{headers.8.split('=')[0].split('(')[0]}}
|
|
|
|
</th>
|
|
|
|
{% endif %}
|
|
|
|
{% if headers|length > 9 %}
|
2020-07-01 20:39:15 +00:00
|
|
|
<th>
|
|
|
|
{{headers.9.split('=')[0].split('(')[0]}}
|
|
|
|
</th>
|
|
|
|
{% endif %}
|
|
|
|
{% if headers|length > 10 %}
|
|
|
|
<th>
|
|
|
|
{{headers.10.split('=')[0].split('(')[0]}}
|
|
|
|
</th>
|
|
|
|
{% endif %}
|
|
|
|
{% if headers|length > 11 %}
|
|
|
|
<th>
|
|
|
|
{{headers.11.split('=')[0].split('(')[0]}}
|
|
|
|
</th>
|
|
|
|
{% endif %}
|
2021-01-12 05:05:53 +00:00
|
|
|
<th style="width: 10px;"></th>
|
2020-07-01 20:39:15 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% endif %}
|
|
|
|
{% set body = t.split(':')[1] %}
|
|
|
|
{% set body = t.split(' ') %}
|
|
|
|
<tr>
|
2021-07-05 14:51:05 +00:00
|
|
|
<td class="padding10" style="width: 10%; padding-left: 10px;">
|
|
|
|
{{ copy_to_clipboard(value=body.1.split('=')[1]) }}
|
2020-07-01 20:39:15 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{body.2.split('=')[1]}}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{body.3.split('=')[1]|int() / 1000 }} s
|
|
|
|
</td>
|
|
|
|
{% if body|length > 4 %}
|
|
|
|
<td>
|
|
|
|
{{body.4.split('=')[1]}}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if body|length > 5 %}
|
|
|
|
<td>
|
|
|
|
{{body.5.split('=')[1]}}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if body|length > 6 %}
|
|
|
|
<td>
|
|
|
|
{{body.6.split('=')[1]}}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if body|length > 7 %}
|
|
|
|
<td>
|
|
|
|
{{body.7.split('=')[1]}}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if body|length > 8 %}
|
|
|
|
<td>
|
|
|
|
{{body.8.split('=')[1]}}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if body|length > 9 %}
|
|
|
|
<td>
|
|
|
|
{{body.9.split('=')[1]}}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
{% if body|length > 10 %}
|
|
|
|
<td>
|
|
|
|
{{body.10.split('=')[1]}}
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
<td>
|
2023-02-13 14:45:45 +00:00
|
|
|
<a class="delete" title="{{lang.words.delete|title()}} {{lang.words.this}} {{lang.words.entry}}" style="cursor: pointer;" onclick="deleteTableEntry(this, '{{tables_head.0.strip()}}', '{{body.1.split('=')[1]}}')"></a>
|
2020-07-01 20:39:15 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2021-01-12 05:05:53 +00:00
|
|
|
{% else %}
|
2023-02-13 14:45:45 +00:00
|
|
|
<span class="alert alert-warning" style="margin-bottom: 0px;">{{lang.words.table|title()}} {{lang.words.is}} {{lang.words.w_empty}}</span>
|
2021-01-12 05:05:53 +00:00
|
|
|
{% endif %}
|
2020-07-01 20:39:15 +00:00
|
|
|
</tbody>
|
2023-02-13 14:45:45 +00:00
|
|
|
</table>
|