Add link to netmail/echomail when showing packet contents

This commit is contained in:
Deon George 2024-06-07 13:27:10 +10:00
parent 67377a2012
commit 368198bc77
3 changed files with 11 additions and 9 deletions

View File

@ -506,8 +506,8 @@ use App\Models\Address;
<tbody>
@foreach ($x as $oo)
<tr>
<td class="packet">{{ $oo->recv_pkt }}</td>
<td>{{ $oo->recv_at }}</td>
<td @class(['packet'=>$oo->recv_pkt])>{{ $oo->recv_pkt ?: '-' }}</td>
<td>{{ $oo->recv_at ?: '-' }}</td>
<td class="text-end">{{ $oo->count }}</td>
</tr>
@endforeach

View File

@ -18,11 +18,13 @@
<td>{{ $oo->fftn->ftn }}</td>
<td>{{ $oo->tftn->ftn }}</td>
<td>
@if ($oo->msgid)
{{ $oo->msgid }}
@else
<small>[{{ $oo->id }}]</small>
@endif
<a href="{{ url('netmail/view',['id'=>$oo->id]) }}">
@if ($oo->msgid)
{{ $oo->msgid }}
@else
<small>[{{ $oo->id }}]</small>
@endif
</a>
</td>
<td>{{ $oo->datetime }}</td>
</tr>
@ -49,7 +51,7 @@
@foreach ($em as $oo)
<tr>
<td>{{ $oo->fftn->ftn }}</td>
<td>{{ $oo->msgid }}</td>
<td><a href="{{ url('echomail/view',['id'=>$oo->id]) }}">{{ $oo->msgid }}</a></td>
<td>{{ $oo->echoarea->name }}</td>
<td>{{ $oo->datetime }}</td>
</tr>

View File

@ -131,7 +131,7 @@ Route::middleware(['auth','verified','activeuser'])->group(function () {
Route::match(['get','post'],'link',[UserController::class,'link']);
Route::post('packet/contents/{o}/{packet}',[HomeController::class,'packet_contents'])
->where('o','[0-9]+')
->where('packet','[[:xdigit:]]+');
->where('packet','[0-9a-zA-Z]+');
Route::match(['get','post'],'user/system/register',[SystemController::class,'register']);
Route::match(['post'],'user/system/link',[SystemController::class,'system_link']);