Removed unnessary controller functions that just call a view, HTML/CSS consistency updates
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<form class="row g-0 needs-validation" method="post" novalidate>
|
||||
<form class="needs-validation" method="post" novalidate>
|
||||
@csrf
|
||||
|
||||
<div class="row">
|
||||
|
@@ -4,14 +4,12 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="row pt-0">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2>List of known FTN Networks</h2>
|
||||
|
||||
<p>Here is a list of known <strong class="highlight">FTN Networks</strong>.</p>
|
||||
</div>
|
||||
|
||||
<div class="col-12 pt-2">
|
||||
<table class="table monotable" id="ftnlist">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@@ -5,170 +5,174 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h1>{{ $o->name }} <small class="float-end pt-4">Last Update: {{ $o->updated_at->format('Y-m-d H:i') }}</small></h1>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h1>{{ $o->name }} <small class="float-end">Last Update: {{ $o->updated_at->format('Y-m-d H:i') }}</small></h1>
|
||||
|
||||
<div class="accordion" id="accordion_homepage">
|
||||
<!-- About -->
|
||||
<div class="accordion-item">
|
||||
<h3 class="accordion-header">
|
||||
<span class="accordion-button" id="about" data-bs-toggle="collapse" data-bs-target="#collapse_about" aria-expanded="true" aria-controls="collapse_about">About</span>
|
||||
</h3>
|
||||
<div class="accordion" id="accordion_homepage">
|
||||
<!-- About -->
|
||||
<div class="accordion-item">
|
||||
<h3 class="accordion-header">
|
||||
<span class="accordion-button" id="about" data-bs-toggle="collapse" data-bs-target="#collapse_about" aria-expanded="true" aria-controls="collapse_about">About</span>
|
||||
</h3>
|
||||
|
||||
<div id="collapse_about" class="accordion-collapse collapse show" aria-labelledby="about" data-bs-parent="#accordion_homepage">
|
||||
<div class="accordion-body">
|
||||
<div class="float-end" style="max-height: 25em;" id="network_traffic"></div>
|
||||
{!! \Illuminate\Mail\Markdown::parse($o->homepage) !!}
|
||||
<div id="collapse_about" class="accordion-collapse collapse show" aria-labelledby="about" data-bs-parent="#accordion_homepage">
|
||||
<div class="accordion-body">
|
||||
<div class="float-end" style="max-height: 25em;" id="network_traffic"></div>
|
||||
{!! \Illuminate\Mail\Markdown::parse($o->homepage) !!}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Echomail -->
|
||||
<div class="accordion-item open">
|
||||
<h3 class="accordion-header">
|
||||
<span class="accordion-button collapsed" id="echoareas" data-bs-toggle="collapse" data-bs-target="#collapse_echoareas" aria-expanded="false" aria-controls="collapse_echoareas">Echo Areas</span>
|
||||
</h3>
|
||||
<!-- Echomail -->
|
||||
<div class="accordion-item">
|
||||
<h3 class="accordion-header">
|
||||
<span class="accordion-button collapsed" id="echoareas" data-bs-toggle="collapse" data-bs-target="#collapse_echoareas" aria-expanded="false" aria-controls="collapse_echoareas">Echo Areas</span>
|
||||
</h3>
|
||||
|
||||
<div id="collapse_echoareas" class="accordion-collapse collapse" aria-labelledby="echoareas" data-bs-parent="#accordion_homepage">
|
||||
<div class="accordion-body">
|
||||
@if($o->echoareas->count())
|
||||
<p>This network provides the following Echomail areas:</p>
|
||||
<table class="table monotable w-100" id="echoarea">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-75" colspan="4"></th>
|
||||
<th colspan="4" class="text-center">Messages</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Echoarea</th>
|
||||
<th>Description</th>
|
||||
<th>Last Message</th>
|
||||
<th>Area Active</th>
|
||||
<th class="text-end">Day</th>
|
||||
<th class="text-end">Week</th>
|
||||
<th class="text-end">Month</th>
|
||||
<th class="text-end">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<div id="collapse_echoareas" class="accordion-collapse collapse" aria-labelledby="echoareas" data-bs-parent="#accordion_homepage">
|
||||
<div class="accordion-body">
|
||||
@if($o->echoareas->count())
|
||||
<p>This network provides the following Echomail areas:</p>
|
||||
<table class="table monotable w-100" id="echoarea">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="w-75" colspan="4"></th>
|
||||
<th colspan="4" class="text-center">Messages</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Echoarea</th>
|
||||
<th>Description</th>
|
||||
<th>Last Message</th>
|
||||
<th>Area Active</th>
|
||||
<th class="text-end">Day</th>
|
||||
<th class="text-end">Week</th>
|
||||
<th class="text-end">Month</th>
|
||||
<th class="text-end">Total</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($o->echoarea_stats()->groupBy('id') as $oo)
|
||||
<tbody>
|
||||
@foreach ($o->echoarea_stats()->groupBy('id') as $oo)
|
||||
<tr>
|
||||
<td style="width: 15%;"><a href="{{ url('echoarea/addedit',[($x=$oo->first())->id]) }}">{{ $x->name }}</a></td>
|
||||
<td>{{ $x->description }}</td>
|
||||
<td style="width: 15%;">{{ $x->last_message ? $x->last_message->format('Y-m-d H:i') : '-' }}</td>
|
||||
<td>{{ $x->active ? 'Active' : 'Archive' }}</td>
|
||||
<td class="text-end">{{ number_format($oo->where('stats','day')->pop()?->count) }}</td>
|
||||
<td class="text-end">{{ number_format($oo->where('stats','week')->pop()?->count) }}</td>
|
||||
<td class="text-end">{{ number_format($oo->where('stats','month')->pop()?->count) }}</td>
|
||||
<td class="text-end">{{ number_format($oo->sum('count')) }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
This network doesnt have any Echomail areas (yet). Perhaps you would like to create one?
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- File areas -->
|
||||
<div class="accordion-item">
|
||||
<h3 class="accordion-header">
|
||||
<span class="accordion-button collapsed" id="fileareas" data-bs-toggle="collapse" data-bs-target="#collapse_fileareas" aria-expanded="false" aria-controls="collapse_fileareas">File Areas</span>
|
||||
</h3>
|
||||
|
||||
<div id="collapse_fileareas" class="accordion-collapse collapse" aria-labelledby="fileareas" data-bs-parent="#accordion_homepage">
|
||||
<div class="accordion-body">
|
||||
@if($o->fileareas->count())
|
||||
<p>This network provides the following File areas:</p>
|
||||
<table class="table monotable" id="filearea">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Filearea</th>
|
||||
<th>Description</th>
|
||||
<th>Last File Sent</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($o->fileareas->sortBy('name') as $oo)
|
||||
<tr>
|
||||
<td style="width: 15%;"><a href="{{ url('filearea/addedit',[$oo->id]) }}">{{ $oo->name }}</a></td>
|
||||
<td>{{ $oo->description }}</td>
|
||||
<td style="width: 15%;">-</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
This network doesnt have any File areas (yet). Perhaps you would like to create one?
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Systems -->
|
||||
<div class="accordion-item">
|
||||
<h3 class="accordion-header">
|
||||
<span class="accordion-button collapsed" id="systems" data-bs-toggle="collapse" data-bs-target="#collapse_systems" aria-expanded="false" aria-controls="collapse_systems">Systems</span>
|
||||
</h3>
|
||||
|
||||
<div id="collapse_systems" class="accordion-collapse collapse" aria-labelledby="systems" data-bs-parent="#accordion_homepage">
|
||||
<div class="accordion-body">
|
||||
<p>The following systems are members of this network.</p>
|
||||
<table class="table monotable" id="system">
|
||||
<thead>
|
||||
<tr>
|
||||
<td style="width: 15%;"><a href="{{ url('echoarea/addedit',[($x=$oo->first())->id]) }}">{{ $x->name }}</a></td>
|
||||
<td>{{ $x->description }}</td>
|
||||
<td style="width: 15%;">{{ $x->last_message ? $x->last_message->format('Y-m-d H:i') : '-' }}</td>
|
||||
<td>{{ $x->active ? 'Active' : 'Archive' }}</td>
|
||||
<td class="text-end">{{ number_format($oo->where('stats','day')->pop()?->count) }}</td>
|
||||
<td class="text-end">{{ number_format($oo->where('stats','week')->pop()?->count) }}</td>
|
||||
<td class="text-end">{{ number_format($oo->where('stats','month')->pop()?->count) }}</td>
|
||||
<td class="text-end">{{ number_format($oo->sum('count')) }}</td>
|
||||
<th>System</th>
|
||||
<th>Sysop</th>
|
||||
<th>Location</th>
|
||||
<th>Address</th>
|
||||
<th>Last Seen</th>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
This network doesnt have any Echomail areas (yet). Perhaps you would like to create one?
|
||||
@endif
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($o->zones->sortBy('zone_id') as $oz)
|
||||
@foreach ($oz->addresses as $ao)
|
||||
<tr>
|
||||
<td><a href="{{ url('system/addedit',[$ao->system_id]) }}">{{ $ao->system->full_name($ao) }}</a> @auth<span class="float-end"><small>@if($ao->session('sespass'))<sup>{{ $ao->session('default') ? '**' : '*' }}</sup>@elseif($ao->system->setup)<sup class="success">+</sup>@endif[{{ $ao->system_id }}]</small></span>@endauth</td>
|
||||
<td>{{ $ao->system->sysop }}</td>
|
||||
<td>{{ $ao->system->location }}</td>
|
||||
<td>{{ $ao->ftn4d }}</td>
|
||||
<td>{{ $ao->system->last_session ? $ao->system->last_session->format('Y-m-d H:i') : '-' }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
@auth
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="5"><sup>**</sup>Default route <sup>*</sup>System defined here <sup class="success">+</sup>This system</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@endauth
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- File areas -->
|
||||
<div class="accordion-item">
|
||||
<h3 class="accordion-header">
|
||||
<span class="accordion-button collapsed" id="fileareas" data-bs-toggle="collapse" data-bs-target="#collapse_fileareas" aria-expanded="false" aria-controls="collapse_fileareas">File Areas</span>
|
||||
</h3>
|
||||
<!-- Sign up -->
|
||||
<div class="accordion-item">
|
||||
<h3 class="accordion-header">
|
||||
<span class="accordion-button collapsed" id="signup" data-bs-toggle="collapse" data-bs-target="#collapse_signup" aria-expanded="false" aria-controls="collapse_signup">Join Network</span>
|
||||
</h3>
|
||||
|
||||
<div id="collapse_fileareas" class="accordion-collapse collapse" aria-labelledby="fileareas" data-bs-parent="#accordion_homepage">
|
||||
<div class="accordion-body">
|
||||
@if($o->fileareas->count())
|
||||
<p>This network provides the following File areas:</p>
|
||||
<table class="table monotable" id="filearea">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Filearea</th>
|
||||
<th>Description</th>
|
||||
<th>Last File Sent</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($o->fileareas->sortBy('name') as $oo)
|
||||
<tr>
|
||||
<td style="width: 15%;"><a href="{{ url('filearea/addedit',[$oo->id]) }}">{{ $oo->name }}</a></td>
|
||||
<td>{{ $oo->description }}</td>
|
||||
<td style="width: 15%;">-</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@else
|
||||
This network doesnt have any File areas (yet). Perhaps you would like to create one?
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Systems -->
|
||||
<div class="accordion-item">
|
||||
<h3 class="accordion-header">
|
||||
<span class="accordion-button collapsed" id="systems" data-bs-toggle="collapse" data-bs-target="#collapse_systems" aria-expanded="false" aria-controls="collapse_systems">Systems</span>
|
||||
</h3>
|
||||
|
||||
<div id="collapse_systems" class="accordion-collapse collapse" aria-labelledby="systems" data-bs-parent="#accordion_homepage">
|
||||
<div class="accordion-body">
|
||||
<p>The following systems are members of this network.</p>
|
||||
<table class="table monotable" id="system">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>System</th>
|
||||
<th>Sysop</th>
|
||||
<th>Location</th>
|
||||
<th>Address</th>
|
||||
<th>Last Seen</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($o->zones->sortBy('zone_id') as $oz)
|
||||
@foreach ($oz->addresses as $ao)
|
||||
<tr>
|
||||
<td><a href="{{ url('system/addedit',[$ao->system_id]) }}">{{ $ao->system->full_name($ao) }}</a> @auth<span class="float-end"><small>@if($ao->session('sespass'))<sup>{{ $ao->session('default') ? '**' : '*' }}</sup>@elseif($ao->system->setup)<sup class="success">+</sup>@endif[{{ $ao->system_id }}]</small></span>@endauth</td>
|
||||
<td>{{ $ao->system->sysop }}</td>
|
||||
<td>{{ $ao->system->location }}</td>
|
||||
<td>{{ $ao->ftn4d }}</td>
|
||||
<td>{{ $ao->system->last_session ? $ao->system->last_session->format('Y-m-d H:i') : '-' }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</tbody>
|
||||
@auth
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="5"><sup>**</sup>Default route <sup>*</sup>System defined here <sup class="success">+</sup>This system</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
@endauth
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Sign up -->
|
||||
<div class="accordion-item">
|
||||
<h3 class="accordion-header">
|
||||
<span class="accordion-button collapsed" id="signup" data-bs-toggle="collapse" data-bs-target="#collapse_signup" aria-expanded="false" aria-controls="collapse_signup">Join Network</span>
|
||||
</h3>
|
||||
|
||||
<div id="collapse_signup" class="accordion-collapse collapse" aria-labelledby="signup" data-bs-parent="#accordion_homepage">
|
||||
<div class="accordion-body">
|
||||
@guest
|
||||
To start an application to join this network please <a href="{{ url('login') }}">login</a>.
|
||||
@else
|
||||
@if($user->isMember($o))
|
||||
@else
|
||||
This website is not ready to take applications yet, check back soon!
|
||||
@endif
|
||||
@endguest
|
||||
<div id="collapse_signup" class="accordion-collapse collapse" aria-labelledby="signup" data-bs-parent="#accordion_homepage">
|
||||
<div class="accordion-body">
|
||||
@guest
|
||||
To start an application to join this network please <a href="{{ url('login') }}">login</a>.
|
||||
@else
|
||||
@if($user->isMember($o))
|
||||
@else
|
||||
This website is not ready to take applications yet, check back soon!
|
||||
@endif
|
||||
@endguest
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user