Files
librenms-librenms/resources/views/widgets/syslog.blade.php
Tony Murray e9ae08d5db Use Laravel url helpers to improve functionality without dns name (#10227)
* Use Laravel url helpers to improve functionality without dns name
Not exhaustive...

* Fix Url generated urls

* Bump js version
2019-05-20 11:47:34 -05:00

29 lines
898 B
PHP

<div class="table-responsive">
<table id="syslog" class="table table-hover table-condensed table-striped">
<thead>
<tr>
<th data-column-id="label"></th>
<th data-column-id="timestamp" data-order="desc">Timestamp</th>
<th data-column-id="level">Level</th>
<th data-column-id="device_id">Hostname</th>
<th data-column-id="program">Program</th>
<th data-column-id="msg">Message</th>
<th data-column-id="priority">Priority</th>
</tr>
</thead>
</table>
</div>
<script type="application/javascript">
$("#syslog").bootgrid({
ajax: true,
rowCount: [50, 100, 250, -1],
post: function ()
{
return {
device: '{{ $device ?: '' }}'
};
},
url: "{{ url('/ajax/table/syslog') }}"
});
</script>