From ee1527447851fc990dfbbe3162df920710825eeb Mon Sep 17 00:00:00 2001 From: Deon George Date: Mon, 4 Dec 2023 09:03:54 +1100 Subject: [PATCH] Enhancements to accordion displays, mainly to show chevrons indicating open status --- public/css/fixes.css | 17 ++ resources/views/domain/view.blade.php | 22 ++- resources/views/pkt.blade.php | 212 ++++++++++++----------- resources/views/status.blade.php | 10 +- resources/views/system/addedit.blade.php | 42 +++-- 5 files changed, 183 insertions(+), 120 deletions(-) diff --git a/public/css/fixes.css b/public/css/fixes.css index fc72593..87c438f 100644 --- a/public/css/fixes.css +++ b/public/css/fixes.css @@ -83,4 +83,21 @@ ol { padding: 5px 5px 5px 5px; margin: 0; font-size: 85%; +} + +/* fix chevrons to our accordion displays */ +.accordion-button:not(.collapsed)::after { + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc3545'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); +} +.accordion-button:not(.collapsed) { + color: inherit; + background-color: inherit; +} +.accordion-button::after { + background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23dc3545'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); +} +.accordion-button { + padding: 0; + color: inherit; + background-color: inherit; } \ No newline at end of file diff --git a/resources/views/domain/view.blade.php b/resources/views/domain/view.blade.php index d9e9e5d..1570ba5 100644 --- a/resources/views/domain/view.blade.php +++ b/resources/views/domain/view.blade.php @@ -7,12 +7,12 @@ @section('content')

{{ $o->name }} Last Update: {{ $o->updated_at->format('Y-m-d H:i') }}

-

Expand each heading for information about this FTN network

-
-

About

+

+ About +

@@ -24,7 +24,9 @@
- +

+ +

@@ -72,7 +74,9 @@
- +

+ +

@@ -106,7 +110,9 @@
- +

+ +

@@ -149,7 +155,9 @@
- +

+ +

diff --git a/resources/views/pkt.blade.php b/resources/views/pkt.blade.php index 2719533..7668492 100644 --- a/resources/views/pkt.blade.php +++ b/resources/views/pkt.blade.php @@ -56,126 +56,142 @@ @if($results->count())

Archive Results: {{ $filename }}

-
+
@foreach($results as $item) @foreach ($item as $file => $result) - -
-
-

Packet {{ $file }} (type {{ $result->type }}) is from {{ $result->fftn }} to {{ $result->tftn }}, dated {{ $result->date }}.

-

This packet has {{ $result->messages->count() }} messages and {{ $result->password ? 'DOES' : 'does NOT' }} have a password.

-

Tosser: {{ $result->software->code }} ({{ $result->software->name }}), version {{ $result->software_ver }}. Capabilities: {{ $result->capability }}.

- @if ($result->messages->count() > 1) -

You can expand each one

- @endif -
-
- @foreach ($result as $msg) -
-
- +
+

+ +

-
-
- @if ($msg->errors) - @foreach ($msg->errors->messages()->all() as $error) -
- {{ $error }} -
- @endforeach - @endif +
+
+

Packet {{ $file }} (type {{ $result->type }}) is from {{ $result->fftn }} to {{ $result->tftn }}, dated {{ $result->date }}.

+

This packet has {{ $result->messages->count() }} messages and {{ $result->password ? 'DOES' : 'does NOT' }} have a password.

+

Tosser: {{ $result->software->code }} ({{ $result->software->name }}), version {{ $result->software_ver }}. Capabilities: {{ $result->capability }}.

+ @if ($result->messages->count() > 1) +

You can expand each one

+ @endif -
-
- DATE: {{ $msg->date }} -
-
- FLAGS: {{ $msg->flags()->filter()->keys()->join(', ') }} -
-
+
-
-
- FROM: {!! \App\Classes\FTN\Message::tr($msg->user_from) !!} ({{ $msg->fftn }}) -
-
- TO: {!! \App\Classes\FTN\Message::tr($msg->user_to) !!}@if($msg->isNetmail()) ({{ $msg->tftn }}) @endif -
-
+
+ + @foreach ($result as $msg) +
+
+

+ +

-
-
- SUBJECT: {!! \App\Classes\FTN\Message::tr($msg->subject) !!} -
-
- -
-
-
-
{!! \App\Classes\FTN\Message::tr($msg->message).sprintf("\r * Origin: %s",$msg->origin) !!}
-
-
-
- - @if($msg->tagline) -
-
- TAGLINE:
{{ $msg->tagline }} -
-
- @endif - - @if($msg->isNetmail()) -
-
- VIA:
{!! $msg->via->join('
') !!} -
-
- @else -
-
- SEENBY:
{!! $msg->seenby->join('
') !!} -
-
- -
-
- PATH:
{!! $msg->path->join('
') !!} -
-
- @endif - -
-
- KLUDGES:
- @foreach ($msg->kludge->sort(function($v,$k) { return $k; })->reverse() as $k => $v) - {{ $k }} {{ $v }}
+
+
+ @if ($msg->errors) + @foreach ($msg->errors->messages()->all() as $error) +
+ {{ $error }} +
@endforeach + @endif + +
+
+ DATE: {{ $msg->date }} +
+
+ FLAGS: {{ $msg->flags()->filter()->keys()->join(', ') }} +
+
+ +
+
+ FROM: {!! \App\Classes\FTN\Message::tr($msg->user_from) !!} ({{ $msg->fftn }}) +
+
+ TO: {!! \App\Classes\FTN\Message::tr($msg->user_to) !!}@if($msg->isNetmail()) ({{ $msg->tftn }}) @endif +
+
+ +
+
+ SUBJECT: {!! \App\Classes\FTN\Message::tr($msg->subject) !!} +
+
+ +
+
+
+
{!! \App\Classes\FTN\Message::tr($msg->message).sprintf("\r * Origin: %s",$msg->origin) !!}
+
+
+
+ + @if($msg->tagline) +
+
+ TAGLINE:
{{ $msg->tagline }} +
+
+ @endif + + @if($msg->isNetmail()) +
+
+ VIA:
{!! $msg->via->join('
') !!} +
+
+ @else +
+
+ SEENBY:
{!! $msg->seenby->join('
') !!} +
+
+ +
+
+ PATH:
{!! $msg->path->join('
') !!} +
+
+ @endif + +
+
+ KLUDGES:
+ @foreach ($msg->kludge->sort(function($v,$k) { return $k; })->reverse() as $k => $v) + {{ $k }} {{ $v }}
+ @endforeach +
-
+
-
- @endforeach + @endforeach + +
+
+

+ +

- -
-
+
+
 {{ $hexdump }}
 
+
+
diff --git a/resources/views/status.blade.php b/resources/views/status.blade.php index 707c5f7..c790d78 100644 --- a/resources/views/status.blade.php +++ b/resources/views/status.blade.php @@ -10,10 +10,12 @@
-
+
- +

+ +

@@ -146,7 +148,9 @@
-

Uncollected Mail

+

+ +

diff --git a/resources/views/system/addedit.blade.php b/resources/views/system/addedit.blade.php index d5455f7..8b2499b 100644 --- a/resources/views/system/addedit.blade.php +++ b/resources/views/system/addedit.blade.php @@ -15,11 +15,13 @@

This system is the ZC for the following zones: {!! $o->zcs->sortBy('zone_id')->map(function($item) { return sprintf('%d@%s',$item->zone_id,$item->domain->name); })->join(', ') !!}

@endif -
+
@if ($o->exists)
-

System

+

+ System +

@@ -30,14 +32,18 @@
- +

+ +

FidoNet addresses are constructed in the format zone:net/node.point@domain.

- +

+ +

@@ -171,7 +177,9 @@ @if(! $o->setup)
- +

+ +

@@ -231,7 +239,9 @@
- +

+ +

@@ -243,7 +253,9 @@
- +

+ +

@@ -255,7 +267,9 @@
- +

+ +

@@ -331,9 +345,11 @@
- +

+ +

-
+
@@ -408,9 +424,11 @@
- +

+ +

-
+