Added BBS List
This commit is contained in:
parent
8095a8299c
commit
0473808e67
@ -2,9 +2,10 @@
|
||||
<h1>{{ $title ?? config('app.name') }}</h1>
|
||||
|
||||
<ul id="navlist-desktop">
|
||||
<li><a href="{{ url($user ? 'dashboard' : '/') }}" class="@if(preg_match('#^/#',request()->path()))thispage @endif"><span>Home</span></a></li>
|
||||
<li><a href="{{ url('about') }}" class="@if(preg_match('#^about#',request()->path()))thispage @endif"><span>About</span></a></li>
|
||||
<li><a href="{{ url('domain/list') }}" class="@if(preg_match('#^list#',request()->path()))thispage @endif"><span>FTN List</span></a></li>
|
||||
<li><a href="{{ url($user ? 'dashboard' : '/') }}" class="@if(preg_match('#^([dashboard]?[/]?)+$#',request()->path()))thispage disabled @endif"><span>Home</span></a></li>
|
||||
<li><a href="{{ url('about') }}" class="@if(preg_match('#^about#',request()->path()))thispage disabled @endif"><span>About</span></a></li>
|
||||
<li><a href="{{ url('domain/list') }}" class="@if(preg_match('#^domain/list#',request()->path()))thispage disabled @endif"><span>FTN List</span></a></li>
|
||||
<li><a href="{{ url('system/list') }}" class="@if(preg_match('#^system/list#',request()->path()))thispage disabled @endif"><span>BBS List</span></a></li>
|
||||
{{--
|
||||
<li><a href="{{ url('help') }}" class="@if(preg_match('#^help#',request()->path()))thispage @endif disabled"><span>Help</span></a></li>
|
||||
--}}
|
||||
|
@ -50,7 +50,7 @@
|
||||
@switch($oo->method)
|
||||
@case(23)<a href="telnet://{{ $oo->address }}:{{ $oo->port }}">Telnet</a>@break
|
||||
@case(22)<a href="ssh://{{ $oo->address }}:{{ $oo->port }}">SSH</a>@break
|
||||
@case(519)<a href="rlogin://{{ $oo->address }}:{{ $oo->port }}">SSH</a>@break
|
||||
@case(519)<a href="rlogin://{{ $oo->address }}:{{ $oo->port }}">rlogin</a>@break
|
||||
@default No details
|
||||
@endswitch
|
||||
</td>
|
||||
|
42
resources/views/system/list.blade.php
Normal file
42
resources/views/system/list.blade.php
Normal file
@ -0,0 +1,42 @@
|
||||
@extends('layouts.app')
|
||||
@section('htmlheader_title')
|
||||
Connectable Systems
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="row pt-0">
|
||||
<div class="col-12">
|
||||
<h2>List of Connectable Systems</h2>
|
||||
|
||||
<p>Here is a list of systems that can be connected to.</p>
|
||||
</div>
|
||||
|
||||
<div class="col-10 pt-2">
|
||||
<table class="table monotable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>System</th>
|
||||
<th>FTN Networks</th>
|
||||
<th>Connection Details</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (\App\Models\System::active()->whereNotNull('method')->orderBy('name')->with(['addresses.zone.domain'])->get() as $o)
|
||||
<tr>
|
||||
<td>{{ $o->name }}</td>
|
||||
<td>{{ $o->addresses->pluck('zone.domain.name')->unique()->sort()->join(',') }}</td>
|
||||
<td>
|
||||
@switch($o->method)
|
||||
@case(23)<a href="telnet://{{ $o->address }}:{{ $o->port }}">Telnet</a> [telnet://{{ $o->address }}:{{ $o->port }}]@break
|
||||
@case(22)<a href="ssh://{{ $o->address }}:{{ $o->port }}">SSH</a> [ssh://{{ $o->address }}:{{ $o->port }}]@break
|
||||
@case(519)<a href="rlogin://{{ $o->address }}:{{ $o->port }}">rlogin [rlogin://{{ $o->address }}:{{ $o->port }}]</a>@break
|
||||
@default No details
|
||||
@endswitch
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
@ -40,6 +40,7 @@ Route::get('admin/switch/stop',[UserSwitchController::class,'user_switch_stop'])
|
||||
Route::get('/',[HomeController::class,'home']);
|
||||
Route::view('about','about');
|
||||
Route::view('domain/list','domain.list');
|
||||
Route::view('system/list','system.list');
|
||||
Route::get('system/view/{o}',[SystemController::class,'view'])
|
||||
->where('o','[0-9]+');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user