Minor bug fixes for migration rollback, domain/list and system last_seen
This commit is contained in:
parent
09fe65a8db
commit
00bdcfba03
@ -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');
|
||||
|
@ -86,6 +86,7 @@ class Echomails extends Migration
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('echomail_seenby');
|
||||
Schema::dropIfExists('echomail_path');
|
||||
Schema::dropIfExists('echomails');
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user