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()
{
Schema::dropIfExists('address_echomail');
Schema::dropIfExists('address_echoarea');
Schema::dropIfExists('address_filearea');
Schema::dropIfExists('fileareas');

View File

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

View File

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

View File

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