Update show_log.pug

This commit is contained in:
Richter 2019-02-25 15:29:25 +01:00
parent a56e6d4798
commit ac610d0d5b

View File

@ -7,22 +7,31 @@ append head
block content block content
main(role='main') main(role='main')
.container .container-fluid
.row .row
table#table_log.table-striped.table-bordered.table-hover.display.table-sm.table-responsive .col-12
h3 Es werden die letzten 5.000 Einträge der Log-Datei angezeigt
.col-12
table#table_log.table-striped.table-bordered.table-hover.display.table-sm.table-responsive.w-100.table-dark
thead thead
tr tr
th id th ID
th log_time th Zeitstempel
th log_typ th Typ
th log_text th Protokolltext
script. script.
var datasets = !{JSON.stringify(dataSet).replace(/<\//g, '<\\/')} var datasets = !{JSON.stringify(dataSet).replace(/<\//g, '<\\/')}
$(document).ready(function() { $(document).ready(function() {
$('#table_log').DataTable( { $('#table_log').DataTable( {
"data": datasets, "data": datasets,
"language": { "url": "/js/datatables_german.json" }, "language": {
"url": "/js/datatables_german.json"
},
"order": [
[ 0, "desc" ]
],
"iDisplayLength": 25,
"columns": [ "columns": [
{ "data": "id" }, { "data": "id" },
{ "data": "log_time" }, { "data": "log_time" },