Only show managed networks when exploring
This commit is contained in:
parent
eca9f257eb
commit
5f6e202a3f
@ -136,12 +136,17 @@ If you have more than 1 BBS, then the Clearing Houz can receive all your mail fr
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
series: [
|
series: [
|
||||||
@foreach (\App\Models\Domain::active()->public()->orderBy('name')->with(['echoareas'])->get() as $o)
|
@foreach (\App\Models\Domain::active()
|
||||||
|
->when(((! $user) || (! $user->isAdmin())),function($query) { return $query->public()->active(); })
|
||||||
|
->orderBy('name')
|
||||||
|
->with(['echoareas'])->get() as $o)
|
||||||
|
@if ($o->managed())
|
||||||
{
|
{
|
||||||
name: '{{ $o->name }}',
|
name: '{{ $o->name }}',
|
||||||
data: {!! $o->daily_area_stats() !!},
|
data: {!! $o->daily_area_stats() !!},
|
||||||
dashStyle: 'ShortDot',
|
dashStyle: 'ShortDot',
|
||||||
},
|
},
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
@ -6,7 +6,9 @@
|
|||||||
@foreach (\App\Models\Domain::select(['id','name'])
|
@foreach (\App\Models\Domain::select(['id','name'])
|
||||||
->when(((! $user) || (! $user->isAdmin())),function($query) { return $query->public()->active(); })
|
->when(((! $user) || (! $user->isAdmin())),function($query) { return $query->public()->active(); })
|
||||||
->orderBy('name')->get() as $o)
|
->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]) }}" title="{{ $o->description }}">{{ $o->name }}</a></dd>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user