Files
librenms-librenms/resources/views/widgets/top-errors.blade.php
T
Tony MurrayandGitHub c5b63bde86 New Blade Components: x-device-link, x-port-link, x-graph-row, x-popup (#13197)
* working popover

* popup component

* cleanup

* finalize device-link component

* attributes WIP

* working graph component

* widgets WIP

* More dynamic configs

* Graph row component

* Build CSS so we can use a dark theme

* graph row set columns

* only one popup visible at a time.

* Just set graph row width statically

* responsive WIP

* rsponsive option for graph-row "working"

* remove @deviceLink and @portLink

* fix non-responsive graph row

* update js/css

* fix style

* bad type?

* types

* types

* types #3

* remove testing code

* full rebel, no closing tags for meta and link

* match previous formatting

* fix vlans display

* restore newline

* remove silly comment

* remove unused line

* style I guess
2021-09-10 08:07:08 -05:00

22 lines
1015 B
PHP

<h4>Top {{ $interface_count }} errored interfaces polled within {{ $time_interval }} minutes</h4>
<div class="table-responsive">
<table class="table table-hover table-condensed table-striped bootgrid-table">
<thead>
<tr>
<th class="text-left">@lang('Device')</th>
<th class="text-left">@lang('Interface')</th>
<th class="text-left">@lang('Error Rate')</th>
</tr>
</thead>
<tbody>
@foreach($ports as $port)
<tr>
<td class="text-left"><x-device-link :device="$port->device">{{$port->device->shortDisplayName() }}</x-device-link></td>
<td class="text-left"><x-port-link :port="$port">{{ $port->getShortLabel() }}</x-port-link></td>
<td class="text-left"><x-port-link :port="$port"><x-graph :port="$port" type="port_bits" width="150" height="21"></x-graph></x-port-link></td>
</tr>
@endforeach
</tbody>
</table>
</div>