From 0db119ab74991619eeeaa8ac1e0543e2d8a1db89 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sat, 19 Jun 2021 11:59:01 +1000 Subject: [PATCH] Start to show more information on network homepage --- app/Models/Zone.php | 5 +- public/oldschool/css/main.css | 11 ++++ resources/views/domain/view.blade.php | 75 ++++++++++++++++++++++++++- 3 files changed, 89 insertions(+), 2 deletions(-) diff --git a/app/Models/Zone.php b/app/Models/Zone.php index 245b90f..c7bc931 100644 --- a/app/Models/Zone.php +++ b/app/Models/Zone.php @@ -17,5 +17,8 @@ class Zone extends Model return $this->belongsTo(Domain::class); } - + public function system() + { + return $this->belongsTo(System::class); + } } \ No newline at end of file diff --git a/public/oldschool/css/main.css b/public/oldschool/css/main.css index daf8da7..28b0e3f 100644 --- a/public/oldschool/css/main.css +++ b/public/oldschool/css/main.css @@ -45,6 +45,17 @@ a.disabled { pointer-events: none; } +.accordion-body { + padding: 10px 0 10px 0; +} +.accordion-item { + background-color: inherit; +} +.accordion-item h3.accordion-header { + padding: 10px 0 10px 0 !important; + margin-bottom: 0 !important; +} + .cap { text-transform:uppercase } diff --git a/resources/views/domain/view.blade.php b/resources/views/domain/view.blade.php index 758d5ae..88f104e 100644 --- a/resources/views/domain/view.blade.php +++ b/resources/views/domain/view.blade.php @@ -5,5 +5,78 @@ @section('content')

{{ $o->name }} Last Update: {{ $o->updated_at }}

-

{!! \Illuminate\Mail\Markdown::parse($o->homepage) !!}

+ +
+
+

About

+ +
+
+ {!! \Illuminate\Mail\Markdown::parse($o->homepage) !!} +
+
+
+ +
+

Echo Areas

+ +
+
+ @if(FALSE) + @else + This network doesnt have any Echomail areas (yet). Perhaps you would like to create one? + @endif +
+
+
+ +
+

File Areas

+ +
+
+ @if(FALSE) + @else + This network doesnt have any File areas (yet). Perhaps you would like to create one? + @endif +
+
+
+ +
+

Systems

+ +
+
+

The following systems are members of this network.

+ + + + + + + + + + + + + @foreach ($o->zones as $oz) + + + + + + + + + + + @endforeach + +
SystemSysopLocationAddressLast Connect
{{ $oz->system->name }}{{ $oz->system->sysop }}{{ $oz->system->location }}{{ $oz->zone_id }}:1/0@{{ $oz->domain->name }}-
+
+
+
+
@endsection \ No newline at end of file