From 4eca1f671f63b332b033ddf387312d21ef2be7ae Mon Sep 17 00:00:00 2001 From: "B.Fatih KOZ" Date: Fri, 22 Oct 2021 17:31:24 +0300 Subject: [PATCH] Fix WX Widget row (#1334) * Fix WX Widget row * Change degree symbol to html --- resources/views/layouts/default/widgets/weather.blade.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/layouts/default/widgets/weather.blade.php b/resources/views/layouts/default/widgets/weather.blade.php index 93df14c1..ecac6ab2 100644 --- a/resources/views/layouts/default/widgets/weather.blade.php +++ b/resources/views/layouts/default/widgets/weather.blade.php @@ -13,7 +13,7 @@ https://api.checkwx.com/#metar-decoded @lang('widgets.weather.wind') - @if($metar['wind_speed'] < '1') Calm @else {{ $metar['wind_speed'] }} kts @lang('common.from') {{ $metar['wind_direction_label'] }} ({{ $metar['wind_direction']}}°) @endif + @if($metar['wind_speed'] < '1') Calm @else {{ $metar['wind_speed'] }} kts @lang('common.from') {{ $metar['wind_direction_label'] }} ({{ $metar['wind_direction']}}°) @endif @if($metar['wind_gust_speed']) @lang('widgets.weather.guststo') {{ $metar['wind_gust_speed'] }} @endif @@ -49,10 +49,10 @@ https://api.checkwx.com/#metar-decoded @endif - Temperature + @lang('widgets.weather.temp') - @if($metar['temperature'][$unit_temp]), @lang('widgets.weather.temp') {{ $metar['temperature'][$unit_temp] }} @else 0 @endif °{{strtoupper($unit_temp)}} - @if($metar['dew_point']), @lang('widgets.weather.dewpoint') @if($metar['dew_point'][$unit_temp]) {{ $metar['dew_point'][$unit_temp] }} @else 0 @endif °{{strtoupper($unit_temp)}} @endif + @if($metar['temperature'][$unit_temp]) {{ $metar['temperature'][$unit_temp] }} @else 0 @endif °{{strtoupper($unit_temp)}} + @if($metar['dew_point']), @lang('widgets.weather.dewpoint') @if($metar['dew_point'][$unit_temp]) {{ $metar['dew_point'][$unit_temp] }} @else 0 @endif °{{strtoupper($unit_temp)}} @endif @if($metar['humidity']), @lang('widgets.weather.humidity') {{ $metar['humidity'] }}% @endif