mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
* Throw some shit together, rough outline. * Reorganize tabs, use tab controllers * Implement performance (into the latency tab) * Update resources/views/device/header.blade.php Co-Authored-By: Jellyfrog <Jellyfrog@users.noreply.github.com> * Add more tabs * All controllers created * Implement routes * Implement smokeping * routing and auth * fix smokeping check * Implement device dropdown menu * Update deviceUrl to new style * Use Gates * Fix style * use more appropriate gates * add show-config gate remove Laravel helper * Only show vlan tab if VLANs exist for the device :D * Fix rancid file check will return false * revert over-zealous file name changes * don't need to request the location parameter, just cast to string to avoid bugs when not found * Move latency tab (ping/performance) to the position of performance instead of ping. Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
25 lines
1.4 KiB
PHP
25 lines
1.4 KiB
PHP
<div class="panel panel-default">
|
|
<div class="panel-body {{ $alert_class }}">
|
|
<img src="{{ url($device->logo()) }}" title="{{ $device->logo() }}" class="device-icon-header pull-left" style="max-height: 100px">
|
|
<div class="pull-left" style="margin-top: 5px;">
|
|
@if($parent_id)
|
|
<a href="{{ route('device', $parent_id) }}" title="@lang('VM Host')"><i class="fa fa-server fa-fw fa-lg"></i></a>
|
|
@endif
|
|
@if(\LibreNMS\Alert\AlertUtil::isMaintenance($device_id))
|
|
<span title="@lang('Scheduled Maintenance')" class="fa fa-wrench fa-fw fa-lg"></span>
|
|
@endif
|
|
<span style="font-size: 20px;">@deviceLink($device)</span><br/>
|
|
<a href="{{ url('/devices/location=' . $device->location) }}">{{ $device->location }}</a>
|
|
</div>
|
|
<div class="pull-right">
|
|
@foreach($overview_graphs as $graph)
|
|
<div style='float: right; text-align: center; padding: 1px 5px; margin: 0 1px; ' class='rounded-5px'>
|
|
<div style="width: {{ $graph['width'] }}px; height: {{ $graph['height'] }}px;">{!! \LibreNMS\Util\Url::graphPopup($graph) !!}</div>
|
|
<div style='font-weight: bold; font-size: 7pt; margin: -3px;'>{{ $graph['popup_title'] }}</div>
|
|
</div>
|
|
@endforeach
|
|
<br style="clear: both;"/>
|
|
</div>
|
|
</div>
|
|
</div>
|