mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
74882e3950
Implemented in Laravel Doesn't use legacy PHP session Several widgets have new features and settings, for example: - Multiple ports in one graph - Maps settings are configurable and override system settings but default to system settings - Graylog stream and/or device selection - Much improved graph widget selection - Many more DO NOT DELETE THIS TEXT #### Please note > Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting. - [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/) #### Testers If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926` After you are done testing, you can remove the changes with `./scripts/github-remove`. If there are schema changes, you can ask on discord how to revert.
67 lines
3.5 KiB
PHP
67 lines
3.5 KiB
PHP
<div class="panel panel-default panel-condensed table-responsive">
|
|
<table class="table table-hover table-condensed table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>@lang('Summary')</th>
|
|
<th><a href="{{ url('devices') }}">@lang('Devices')</a></th>
|
|
<th><a href="{{ url('ports') }}">@lang('Ports')</a></th>
|
|
@if($show_services)
|
|
<th><a href="{{ url('services') }}">@lang('Services')</a></th>
|
|
@endif
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th><span class="green">@lang('Up')</span></th>
|
|
<td><a href="{{ url('devices/format=list_detail/state=up') }}"><span class="green"> {{ $devices['up'] }}</span></a></td>
|
|
<td><a href="{{ url('ports/format=list_detail/state=up') }}"><span class="green"> {{ $ports['up'] }}</span></a></td>
|
|
@if($show_services)
|
|
<td><a href="{{ url('services/view=details/state=ok') }}"><span class="green"> {{ $services['up'] }}</span></a></td>
|
|
@endif
|
|
</tr>
|
|
<tr>
|
|
<th><span class="red">@lang('Down')</span></th>
|
|
<td><a href="{{ url('devices/format=list_detail/state=down') }}"><span class="red"> {{ $devices['down'] }}</span></a></td>
|
|
<td><a href="{{ url('ports/format=list_detail/state=down') }}"><span class="red"> {{ $ports['down'] }}</span></a></td>
|
|
@if($show_services)
|
|
<td><a href="{{ url('services/view=details/state=critical') }}"><span class="red"> {{ $services['down'] }}</span></a></td>
|
|
@endif
|
|
</tr>
|
|
<tr>
|
|
<th><span class="grey">@lang('Ignored')</span></th>
|
|
<td><a href="{{ url('devices/format=list_detail/ignore=1') }}"><span class="grey"> {{ $devices['ignored'] }}</span></a></td>
|
|
<td><a href="{{ url('ports/format=list_detail/ignore=1') }}"><span class="grey"> {{ $ports['ignored'] }}</span></a></td>
|
|
@if($show_services)
|
|
<td><a href="{{ url('services/view=details/ignore=1') }}"><span class="grey"> {{ $services['ignored'] }}</span></a></td>
|
|
@endif
|
|
</tr>
|
|
<tr>
|
|
<th><span class="black">Disabled/Shutdown</span></th>
|
|
<td><a href="{{ url('devices/format=list_detail/disabled=1') }}"><span class="black"> {{ $devices['disabled'] }}</span></a></td>
|
|
<td><a href="{{ url('ports/format=list_detail/state=admindown') }}"><span class="black"> {{ $ports['shutdown'] }}</span></a></td>
|
|
@if($show_services)
|
|
<td><a href="{{ url('services/view=details/disabled=1') }}"><span class="black"> {{ $services['disabled'] }}</span></a></td>
|
|
@endif
|
|
</tr>
|
|
@if($summary_errors)
|
|
<tr>
|
|
<th><span class="black">@lang('Errored')</span></th>
|
|
<td>-</td>
|
|
<td><a href="{{ url('ports/format=list_detail/errors=1') }}"><span class="black"> {{ $ports['errored'] }}</span></a></td>
|
|
@if($show_services)
|
|
<td>-</td>
|
|
@endif
|
|
</tr>
|
|
@endif
|
|
<tr>
|
|
<th><span class="grey">@lang('Total')</span></th>
|
|
<td><a href="{{ url('devices') }}"><span> {{ $devices['count'] }}</span></a></td>
|
|
<td><a href="{{ url('ports') }}"><span> {{ $ports['count'] }}</span></a></td>
|
|
@if($show_services)
|
|
<td><a href="{{ url('services') }}"><span> {{ $services['count'] }}</span></a></td>
|
|
@endif
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|