librenms/librenms

View on GitHub
resources/views/widgets/eventlog.blade.php

Summary

Maintainability
A
0 mins
Test Coverage
<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>