Files
librenms-librenms/resources/views/widgets/top-interfaces.blade.php
Tony Murray 0959df53e5 Don't use @lang() it doesn't escape the string (#13566)
* Don't use @lang() it doesn't escape the string
Found an issue where a string contained a single quote and broke the page.

* fix regex errors

* fix another style of mis-replacement

* found another issue
2021-11-28 21:17:11 -06:00

22 lines
1019 B
PHP

<h4>Top {{ $interface_count }} 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">{{ __('Device') }}</th>
<th class="text-left">{{ __('Interface') }}</th>
<th class="text-left">{{ __('Total traffic') }}</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>