Show queue commands, add My Systems to sidebar menu

This commit is contained in:
Deon George 2023-07-06 11:52:11 +10:00
parent 9762b8c2f4
commit 349ad32fc8
2 changed files with 12 additions and 4 deletions

View File

@ -31,7 +31,6 @@ return [
'notifications:table',
'optimize:*',
'package:discover',
'queue:*',
'route:*',
'serve',
'schedule:*',

View File

@ -1,13 +1,22 @@
<div id="sidebar-scroller">
FTN Networks
@auth
<dl>
<dt>Expore Networks</dt>
<dt>My Systems</dt>
@foreach ($user->systems->sortBy('name') as $o)
<dd><a href="{{ url('ftn/system/addedit',['id'=>$o->id]) }}">{{ $o->name }}</a></dd>
@endforeach
</dl>
@endauth
<dl>
<dt>Explore Networks</dt>
@foreach (\App\Models\Domain::select(['id','name'])
->when(((! $user) || (! $user->isAdmin())),function($query) { return $query->public()->active(); })
->orderBy('name')->get() as $o)
@if ($o->managed())
<dd><a href="{{ url('network',['id'=>$o->id]) }}" title="{{ $o->description }}">{{ $o->name }}</a></dd>
<dd><a href="{{ url('network',['id'=>$o->id]) }}">{{ $o->name }}</a></dd>
@endif
@endforeach
</dl>
@ -40,6 +49,6 @@
<dl>
<dt>Debug</dt>
<dd><a href="{{ url('pkt') }}">Verify Packet</a></dd>
<dd><a href="{{ url('pkt') }}">View Packet</a></dd>
</dl>
</div>