Optimise the queries used to display packet contents and show DBID if msgid is not available

This commit is contained in:
2023-11-23 21:55:39 +11:00
parent b3dfca5b89
commit 19338edcb6
4 changed files with 23 additions and 15 deletions

View File

@@ -17,7 +17,13 @@
<tr>
<td>{{ $oo->fftn->ftn }}</td>
<td>{{ $oo->tftn->ftn }}</td>
<td>{{ $oo->msgid }}</td>
<td>
@if ($oo->msgid)
{{ $oo->msgid }}
@else
<small>[{{ $oo->id }}]</small>
@endif
</td>
<td>{{ $oo->datetime }}</td>
</tr>
@endforeach

View File

@@ -64,7 +64,7 @@ use App\Classes\FTN\Message;
<div class="col-8">
PATH: <br><strong class="highlight">{!! optimize_path($msg->pathorder())->join('</strong> -> <strong class="highlight">') !!}</strong>
@if ($msg->rogue_path->count())
@if (($msg instanceof \App\Models\Echomail) && $msg->rogue_path->count())
<br><small>[<strong>NOTE</strong>: Some path values couldnt be identified - ({{ $msg->rogue_path->join(',') }})]</small>
@endif
</div>