Files
librenms-librenms/resources/views/widgets/eventlog.blade.php
Peca Nesovanovic 8b012c0a27 Enable translation on Eventlog & Component-status widgets (#14180)
* translate component-status

* translate eventlog
2022-08-05 10:12:44 +02:00

30 lines
988 B
PHP

<div class="table-responsive">
<table id="eventlog" class="table table-hover table-condensed table-striped" data-ajax="true">
<thead>
<tr>
<th data-column-id="datetime" data-order="desc">{{ __('Timestamp') }}</th>
<th data-column-id="type">{{ __('Type') }}</th>
<th data-column-id="device_id">{{ __('Hostname') }}</th>
<th data-column-id="message">{{ __('Message') }}</th>
<th data-column-id="username">{{ __('User') }}</th>
</tr>
</thead>
</table>
</div>
<script>
$("#eventlog").bootgrid({
ajax: true,
rowCount: [50, 100, 250, -1],
navigation: ! {{ $hidenavigation }},
post: function ()
{
return {
device: "{{ $device }}",
device_group: "{{ $device_group }}",
eventtype: "{{ $eventtype }}"
};
},
url: "{{ url('/ajax/table/eventlog') }}"
});
</script>