Move widgets/home
This commit is contained in:
@@ -481,9 +481,9 @@ class Metar implements \ArrayAccess
|
|||||||
$time_diff = floor(($now - $local) / 60);
|
$time_diff = floor(($now - $local) / 60);
|
||||||
|
|
||||||
if ($time_diff < 91) {
|
if ($time_diff < 91) {
|
||||||
$this->set_result_value('observed_age', $time_diff.' '.trans_choice('frontend.widgets.weather.minago', $time_diff));
|
$this->set_result_value('observed_age', $time_diff.' '.trans_choice('widgets.weather.minago', $time_diff));
|
||||||
} else {
|
} else {
|
||||||
$this->set_result_value('observed_age', floor($time_diff / 60).':'.sprintf("%02d", $time_diff % 60).' '.trans_choice('frontend.widgets.weather.hrago', floor($time_diff / 60)));
|
$this->set_result_value('observed_age', floor($time_diff / 60).':'.sprintf("%02d", $time_diff % 60).' '.trans_choice('widgets.weather.hrago', floor($time_diff / 60)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,10 +18,7 @@ return [
|
|||||||
],
|
],
|
||||||
|
|
||||||
'home' => [
|
'home' => [
|
||||||
'welcome' => [
|
|
||||||
'title' => 'Welcome!',
|
|
||||||
'message' => 'Welcome in :Appname',
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
|
|
||||||
'nav' => [
|
'nav' => [
|
||||||
|
|||||||
11
resources/lang/en/home.php
Normal file
11
resources/lang/en/home.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
return [
|
||||||
|
'welcome' => [
|
||||||
|
'title' => 'Welcome!',
|
||||||
|
'message' => 'Welcome to :appname',
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -18,13 +18,6 @@ return [
|
|||||||
'nodownloads' => 'Non ci sono downloads!',
|
'nodownloads' => 'Non ci sono downloads!',
|
||||||
],
|
],
|
||||||
|
|
||||||
'home' => [
|
|
||||||
'welcome' => [
|
|
||||||
'title' => 'Benvenuti!',
|
|
||||||
'message' => 'Benvenuti in :Appname',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
|
|
||||||
'nav' => [
|
'nav' => [
|
||||||
'administration' => 'Amministrazione',
|
'administration' => 'Amministrazione',
|
||||||
'logout' => 'Uscita',
|
'logout' => 'Uscita',
|
||||||
@@ -108,34 +101,4 @@ return [
|
|||||||
'location' => 'Posizione',
|
'location' => 'Posizione',
|
||||||
],
|
],
|
||||||
|
|
||||||
'widgets' => [
|
|
||||||
'latestnews' => [
|
|
||||||
'news' => 'Novità',
|
|
||||||
'nonewsfound' => 'Nessuna Novità Trovata',
|
|
||||||
],
|
|
||||||
|
|
||||||
'livemap' => [
|
|
||||||
'groundspeed' => 'Velocità al Suolo',
|
|
||||||
'altitude' => 'Altitudine',
|
|
||||||
'heading' => 'Direzione',
|
|
||||||
'noflights' => 'Non ci sono voli.',
|
|
||||||
'gs' => 'VS',
|
|
||||||
],
|
|
||||||
|
|
||||||
'weather' => [
|
|
||||||
'metarnotretrieved' => 'I dati METAR/TAF non possono essere recuperati',
|
|
||||||
'conditions' => 'Condizioni',
|
|
||||||
'visibility' => 'visibilità',
|
|
||||||
'humidity' => 'umidità',
|
|
||||||
'dewpoint' => 'punto di rugiada',
|
|
||||||
'barometer' => 'Barometro',
|
|
||||||
'clouds' => 'Nuvole',
|
|
||||||
'wind' => 'Vento',
|
|
||||||
'guststo' => 'raffiche da',
|
|
||||||
'remarks' => 'Remarks',
|
|
||||||
'updated' => 'Aggiornato',
|
|
||||||
'hrago' => 'ora fa|ore fa',
|
|
||||||
'minago' => 'ninuto fa|minuti fa',
|
|
||||||
],
|
|
||||||
],
|
|
||||||
];
|
];
|
||||||
|
|||||||
11
resources/lang/it/home.php
Normal file
11
resources/lang/it/home.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
return [
|
||||||
|
'welcome' => [
|
||||||
|
'title' => 'Benvenuti!',
|
||||||
|
'message' => 'Benvenuti in :Appname',
|
||||||
|
],
|
||||||
|
];
|
||||||
35
resources/lang/it/widgets.php
Normal file
35
resources/lang/it/widgets.php
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
return [
|
||||||
|
'latestnews' => [
|
||||||
|
'news' => 'Novità',
|
||||||
|
'nonewsfound' => 'Nessuna Novità Trovata',
|
||||||
|
],
|
||||||
|
|
||||||
|
'livemap' => [
|
||||||
|
'groundspeed' => 'Velocità al Suolo',
|
||||||
|
'altitude' => 'Altitudine',
|
||||||
|
'heading' => 'Direzione',
|
||||||
|
'noflights' => 'Non ci sono voli.',
|
||||||
|
'gs' => 'VS',
|
||||||
|
],
|
||||||
|
|
||||||
|
'weather' => [
|
||||||
|
'metarnotretrieved' => 'I dati METAR/TAF non possono essere recuperati',
|
||||||
|
'conditions' => 'Condizioni',
|
||||||
|
'visibility' => 'visibilità',
|
||||||
|
'humidity' => 'umidità',
|
||||||
|
'dewpoint' => 'punto di rugiada',
|
||||||
|
'barometer' => 'Barometro',
|
||||||
|
'clouds' => 'Nuvole',
|
||||||
|
'wind' => 'Vento',
|
||||||
|
'guststo' => 'raffiche da',
|
||||||
|
'remarks' => 'Remarks',
|
||||||
|
'updated' => 'Aggiornato',
|
||||||
|
'hrago' => 'ora fa|ore fa',
|
||||||
|
'minago' => 'ninuto fa|minuti fa',
|
||||||
|
],
|
||||||
|
];
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-block" style="min-height: 0px">
|
<div class="card-block" style="min-height: 0px">
|
||||||
<div class="form-group text-right">
|
<div class="form-group text-right">
|
||||||
<a href="{{ route('frontend.flights.bids') }}">{{ trans_choice('frontend.flights.mybid', 2) }}</a>
|
<a href="{{ route('frontend.flights.bids') }}">{{ trans_choice('flights.mybid', 2) }}</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
@extends('app')
|
@extends('app')
|
||||||
@section('title', trans('frontend.home.welcome.title'))
|
@section('title', __('home.welcome.title'))
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
style="margin-top: -10px;margin-bottom: 5px"
|
style="margin-top: -10px;margin-bottom: 5px"
|
||||||
href="{{ route('frontend.pireps.create') }}">@lang('pireps.filenewpirep')</a>
|
href="{{ route('frontend.pireps.create') }}">@lang('pireps.filenewpirep')</a>
|
||||||
</div>
|
</div>
|
||||||
<h2>{{ trans_choice('frontend.pireps.pilotreport', 2) }}</h2>
|
<h2>{{ trans_choice('pireps.pilotreport', 2) }}</h2>
|
||||||
@include('flash::message')
|
@include('flash::message')
|
||||||
@include('pireps.table')
|
@include('pireps.table')
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -175,7 +175,7 @@
|
|||||||
@if(count($pirep->fares) > 0)
|
@if(count($pirep->fares) > 0)
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<h5>{{ trans_choice('frontend.pireps.fare', 2) }}</h5>
|
<h5>{{ trans_choice('pireps.fare', 2) }}</h5>
|
||||||
<table class="table table-hover table-condensed">
|
<table class="table table-hover table-condensed">
|
||||||
<thead>
|
<thead>
|
||||||
<th>@lang('pireps.class')</th>
|
<th>@lang('pireps.class')</th>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<div class="nav nav-tabs" role="tablist" style="background: #067ec1; color: #FFF;">
|
<div class="nav nav-tabs" role="tablist" style="background: #067ec1; color: #FFF;">
|
||||||
@lang('frontend.widgets.latestnews.news')
|
@lang('widgets.latestnews.news')
|
||||||
</div>
|
</div>
|
||||||
<div class="card border-blue-bottom">
|
<div class="card border-blue-bottom">
|
||||||
<div class="card-block" style="min-height: 0px">
|
<div class="card-block" style="min-height: 0px">
|
||||||
@if($news->count() === 0)
|
@if($news->count() === 0)
|
||||||
<div class="text-center text-muted" style="padding: 30px;">
|
<div class="text-center text-muted" style="padding: 30px;">
|
||||||
@lang('frontend.widgets.latestnews.nonewsfound')
|
@lang('widgets.latestnews.nonewsfound')
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|||||||
@@ -43,9 +43,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="float: right; margin-left: 30px; margin-right: 30px;">
|
<div style="float: right; margin-left: 30px; margin-right: 30px;">
|
||||||
<p id="map_flight_stats_right">
|
<p id="map_flight_stats_right">
|
||||||
@lang('frontend.widgets.livemap.groundspeed'): <span style="font-weight: bold">{ pirep.position.gs }</span><br/>
|
@lang('widgets.livemap.groundspeed'): <span style="font-weight: bold">{ pirep.position.gs }</span><br/>
|
||||||
@lang('frontend.widgets.livemap.altitude'): <span style="font-weight: bold">{ pirep.position.altitude }</span><br/>
|
@lang('widgets.livemap.altitude'): <span style="font-weight: bold">{ pirep.position.altitude }</span><br/>
|
||||||
@lang('frontend.widgets.livemap.heading'): <span style="font-weight: bold">{ pirep.position.heading }</span><br/>
|
@lang('widgets.livemap.heading'): <span style="font-weight: bold">{ pirep.position.heading }</span><br/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div style="float: right; margin-left: 30px;">
|
<div style="float: right; margin-left: 30px;">
|
||||||
@@ -74,7 +74,7 @@ and being mindful of the rivets bindings
|
|||||||
--}}
|
--}}
|
||||||
<div id="live_flights" class="row">
|
<div id="live_flights" class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div rv-hide="has_data" class="jumbotron text-center">@lang('frontend.widgets.livemap.noflights')</div>
|
<div rv-hide="has_data" class="jumbotron text-center">@lang('widgets.livemap.noflights')</div>
|
||||||
<table rv-show="has_data" id="live_flights_table" class="table table-striped">
|
<table rv-show="has_data" id="live_flights_table" class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="text-small header">
|
<tr class="text-small header">
|
||||||
@@ -82,9 +82,9 @@ and being mindful of the rivets bindings
|
|||||||
<td class="text-small">@lang('common.departure')</td>
|
<td class="text-small">@lang('common.departure')</td>
|
||||||
<td class="text-small">@lang('common.arrival')</td>
|
<td class="text-small">@lang('common.arrival')</td>
|
||||||
<td class="text-small">@lang('common.aircraft')</td>
|
<td class="text-small">@lang('common.aircraft')</td>
|
||||||
<td class="text-small">@lang('frontend.widgets.livemap.altitude')</td>
|
<td class="text-small">@lang('widgets.livemap.altitude')</td>
|
||||||
<td class="text-small">@lang('frontend.widgets.livemap.gs')</td>
|
<td class="text-small">@lang('widgets.livemap.gs')</td>
|
||||||
<td class="text-small">@lang('frontend.widgets.livemap.distance')</td>
|
<td class="text-small">@lang('widgets.livemap.distance')</td>
|
||||||
<td class="text-small">@lang('common.status') }}</td>
|
<td class="text-small">@lang('common.status') }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -5,30 +5,30 @@ https://api.checkwx.com/#metar-decoded
|
|||||||
|
|
||||||
--}}
|
--}}
|
||||||
@if(!$metar)
|
@if(!$metar)
|
||||||
<p>@lang('frontend.widgets.weather.metarnotretrieved')</p>
|
<p>@lang('widgets.weather.metarnotretrieved')</p>
|
||||||
@else
|
@else
|
||||||
<table class="table table-striped">
|
<table class="table table-striped">
|
||||||
<tr>
|
<tr>
|
||||||
<td>@lang('frontend.widgets.weather.conditions')</td>
|
<td>@lang('widgets.weather.conditions')</td>
|
||||||
<td>
|
<td>
|
||||||
{{ $metar['category'] }}
|
{{ $metar['category'] }}
|
||||||
{{ $metar['temperature'][$unit_temp] }}
|
{{ $metar['temperature'][$unit_temp] }}
|
||||||
°{{strtoupper($unit_temp)}}
|
°{{strtoupper($unit_temp)}}
|
||||||
@if($metar['visibility'])
|
@if($metar['visibility'])
|
||||||
, @lang('frontend.widgets.weather.visibility') {{ $metar['visibility'][$unit_dist] }} {{$unit_dist}}
|
, @lang('widgets.weather.visibility') {{ $metar['visibility'][$unit_dist] }} {{$unit_dist}}
|
||||||
@endif
|
@endif
|
||||||
@if($metar['humidity'])
|
@if($metar['humidity'])
|
||||||
, {{ $metar['humidity'] }}% @lang('frontend.widgets.weather.humidity')
|
, {{ $metar['humidity'] }}% @lang('widgets.weather.humidity')
|
||||||
@endif
|
@endif
|
||||||
@if($metar['dew_point'])
|
@if($metar['dew_point'])
|
||||||
, @lang('frontend.widgets.weather.dewpoint')
|
, @lang('widgets.weather.dewpoint')
|
||||||
{{ $metar['dew_point'][$unit_temp] }}
|
{{ $metar['dew_point'][$unit_temp] }}
|
||||||
°{{strtoupper($unit_temp)}}
|
°{{strtoupper($unit_temp)}}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>@lang('frontend.widgets.weather.barometer')</td>
|
<td>@lang('widgets.weather.barometer')</td>
|
||||||
<td>
|
<td>
|
||||||
{{ number_format($metar['barometer'], 2) }} hPa
|
{{ number_format($metar['barometer'], 2) }} hPa
|
||||||
/ {{ number_format($metar['barometer_in'], 2) }} inHg
|
/ {{ number_format($metar['barometer_in'], 2) }} inHg
|
||||||
@@ -36,7 +36,7 @@ https://api.checkwx.com/#metar-decoded
|
|||||||
</tr>
|
</tr>
|
||||||
@if($metar['clouds'])
|
@if($metar['clouds'])
|
||||||
<tr>
|
<tr>
|
||||||
<td>@lang('frontend.widgets.weather.clouds')</td>
|
<td>@lang('widgets.weather.clouds')</td>
|
||||||
<td>
|
<td>
|
||||||
@if($unit_alt === 'ft')
|
@if($unit_alt === 'ft')
|
||||||
{{$metar['clouds_report_ft']}}
|
{{$metar['clouds_report_ft']}}
|
||||||
@@ -47,12 +47,12 @@ https://api.checkwx.com/#metar-decoded
|
|||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
<tr>
|
<tr>
|
||||||
<td>@lang('frontend.widgets.weather.wind')</td>
|
<td>@lang('widgets.weather.wind')</td>
|
||||||
<td>
|
<td>
|
||||||
{{$metar['wind_speed']}} kts @lang('common.from') {{$metar['wind_direction_label']}}
|
{{$metar['wind_speed']}} kts @lang('common.from') {{$metar['wind_direction_label']}}
|
||||||
({{$metar['wind_direction']}}°)
|
({{$metar['wind_direction']}}°)
|
||||||
@if($metar['wind_gust_speed'])
|
@if($metar['wind_gust_speed'])
|
||||||
@lang('frontend.widgets.weather.guststo') {{ $metar['wind_gust_speed'] }}
|
@lang('widgets.weather.guststo') {{ $metar['wind_gust_speed'] }}
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -66,14 +66,14 @@ https://api.checkwx.com/#metar-decoded
|
|||||||
</tr>
|
</tr>
|
||||||
@if($metar['remarks'])
|
@if($metar['remarks'])
|
||||||
<tr>
|
<tr>
|
||||||
<td>@lang('frontend.widgets.weather.remarks')</td>
|
<td>@lang('widgets.weather.remarks')</td>
|
||||||
<td>
|
<td>
|
||||||
{{ $metar['remarks'] }}
|
{{ $metar['remarks'] }}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endif
|
@endif
|
||||||
<tr>
|
<tr>
|
||||||
<td>@lang('frontend.widgets.weather.updated')</td>
|
<td>@lang('widgets.weather.updated')</td>
|
||||||
<td>{{$metar['observed_time']}} ({{$metar['observed_age']}})</td>
|
<td>{{$metar['observed_time']}} ({{$metar['observed_age']}})</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user