Correctly handle the uniform tiles setting (inverted)

This commit is contained in:
Tony Murray
2018-12-17 09:12:05 -06:00
parent ac5aae794a
commit 41b1dc67ed
@@ -26,9 +26,9 @@
<a href="{{ \LibreNMS\Util\Url::deviceUrl($device) }}" title="{{ $device->displayName() }} - {{ $device->formatUptime(true) }}">
@if($type == 0)
@if($color_only_select)
<span class="label {{ $device->labelClass }} widget-availability label-font-border">@lang($device->stateName)</span>
@else
<span class="label {{ $device->labelClass }} widget-availability-fixed widget-availability label-font-border"> </span>
@else
<span class="label {{ $device->labelClass }} widget-availability label-font-border">@lang($device->stateName)</span>
@endif
@else
<div class="availability-map-oldview-box-{{ $device->stateName }}" style="width:{{ $tile_size }}px;height:{{ $tile_size }}px;"></div>
@@ -40,9 +40,9 @@
<a href="{{ \LibreNMS\Util\Url::deviceUrl($service->device, ['tab' => 'services']) }}" title="{{ $service->device->displayName() }} - {{ $service->service_type }} - {{ $service->service_desc }}">
@if($type == 0)
@if($color_only_select)
<span class="label {{ $service->labelClass }} widget-availability label-font-border">{{ $service->service_type }} - {{ $service->stateName }}</span>
@else
<span class="label {{ $service->labelClass }} widget-availability-fixed widget-availability label-font-border"> </span>
@else
<span class="label {{ $service->labelClass }} widget-availability label-font-border">{{ $service->service_type }} - {{ $service->stateName }}</span>
@endif
@else
<div class="availability-map-oldview-box-{{ $service->stateName }}" style="width:{{ $tile_size }}px;height:{{ $tile_size }}px;"></div>