Minor bug fixes for migration rollback, domain/list and system last_seen

This commit is contained in:
Deon George 2022-12-03 13:35:23 +11:00
parent 09fe65a8db
commit 00bdcfba03
4 changed files with 8 additions and 7 deletions

View File

@ -73,7 +73,7 @@ class Echoarea extends Migration
*/ */
public function down() public function down()
{ {
Schema::dropIfExists('address_echomail'); Schema::dropIfExists('address_echoarea');
Schema::dropIfExists('address_filearea'); Schema::dropIfExists('address_filearea');
Schema::dropIfExists('fileareas'); Schema::dropIfExists('fileareas');

View File

@ -86,6 +86,7 @@ class Echomails extends Migration
*/ */
public function down() public function down()
{ {
Schema::dropIfExists('echomail_seenby');
Schema::dropIfExists('echomail_path'); Schema::dropIfExists('echomail_path');
Schema::dropIfExists('echomails'); Schema::dropIfExists('echomails');
} }

View File

@ -31,8 +31,8 @@
<td class="text-end">{{ $do->active ? 'YES' : 'NO' }}</td> <td class="text-end">{{ $do->active ? 'YES' : 'NO' }}</td>
<td class="text-end">{{ $do->managed() ? 'YES' : 'NO' }}</td> <td class="text-end">{{ $do->managed() ? 'YES' : 'NO' }}</td>
<td> <td>
@foreach (($x=$do->zones->pluck('addresses')->flatten())->where('role',\App\Models\Address::NODE_ZC) as $ao) @foreach (($x=$do->zones->pluck('addresses')->flatten())->where('role',\App\Models\Address::NODE_ZC)->sortBy('zone.zone_id') as $ao)
{{ $ao->system->sysop }}, <a href="{{ url('system/view',$ao->system_id) }}">{{ $ao->system->name }}</a> {{ $ao->system->sysop }}, <a href="{{ url('system/view',$ao->system_id) }}">{{ $ao->system->name }}</a><br>
@endforeach @endforeach
</td> </td>
<td class="text-end">{{ $x->pluck('system')->unique('name')->count() }}</td> <td class="text-end">{{ $x->pluck('system')->unique('name')->count() }}</td>

View File

@ -31,16 +31,16 @@
<th>Mailer</th> <th>Mailer</th>
<td>{{ $o->access_mailer }}</td> <td>{{ $o->access_mailer }}</td>
</tr> </tr>
<tr>
<th>Last Seen</th>
<td>{{ $o->logs->last()->created_at }}</td>
</tr>
@if($o->phone) @if($o->phone)
<tr> <tr>
<th>Phone</th> <th>Phone</th>
<td>{{ $o->phone }}</td> <td>{{ $o->phone }}</td>
</tr> </tr>
@endif @endif
<tr>
<th>Last Seen</th>
<td>{{ $o->logs->count() ? $o->logs->last()->created_at : '-' }}</td>
</tr>
@if($o->addresses->count()) @if($o->addresses->count())
<tr> <tr>
<th>FTN Addresses</th> <th>FTN Addresses</th>