Update and display last seen for systems
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
<td>{{ $oz->system->sysop }}</td>
|
||||
<td>{{ $oz->system->location }}</td>
|
||||
<td>{{ $oz->zone_id }}:0/0</td>
|
||||
<td>-</td>
|
||||
<td>{{ $oz->system->last_session ? $oz->system->last_session->format('Y-m-d H:i') : '-' }}</td>
|
||||
</tr>
|
||||
|
||||
@foreach ($oz->addresses()->active()->FTNorder()->where('point_id',0)->whereNull('hub_id')->with(['system','zone.domain'])->get() as $ao)
|
||||
@@ -84,7 +84,7 @@
|
||||
<td>{{ $ao->system->sysop }}</td>
|
||||
<td>{{ $ao->system->location }}</td>
|
||||
<td>{{ $oz->zone_id }}:{{ $ao->host_id }}/0</td>
|
||||
<td>-</td>
|
||||
<td>{{ $ao->system->last_session ? $ao->system->last_session->format('Y-m-d H:i') : '-' }}</td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
<td>{{ $ao->system->sysop }}</td>
|
||||
<td>{{ $ao->system->location }}</td>
|
||||
<td>{{ $ao->ftn_3d }}</td>
|
||||
<td>-</td>
|
||||
<td>{{ $ao->system->last_session ? $ao->system->last_session->format('Y-m-d H:i') : '-' }}</td>
|
||||
</tr>
|
||||
|
||||
<!-- If this node is a hub -->
|
||||
@@ -104,7 +104,7 @@
|
||||
<td>{{ $aoo->system->sysop }}</td>
|
||||
<td>{{ $aoo->system->location }}</td>
|
||||
<td>{{ $aoo->ftn_3d }}</td>
|
||||
<td>-</td>
|
||||
<td>{{ $aoo->system->last_session ? $aoo->system->last_session->format('Y-m-d H:i') : '-' }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endif
|
||||
|
@@ -21,7 +21,7 @@
|
||||
<th>System</th>
|
||||
<th>Sysop</th>
|
||||
<th>Location</th>
|
||||
<th>Connect</th>
|
||||
<th>Last Seen</th>
|
||||
<th>Address</th>
|
||||
<th>ZeroTier ID</th>
|
||||
</tr>
|
||||
@@ -35,14 +35,7 @@
|
||||
<td>{{ $oo->system->name }}</td>
|
||||
<td>{{ $oo->system->sysop }}</td>
|
||||
<td>{{ $oo->system->location }}</td>
|
||||
<td>
|
||||
@switch($oo->system->method)
|
||||
@case(23)<a href="telnet://{{ $oo->system->address }}:{{ $oo->system->port }}">Telnet</a>@break
|
||||
@case(22)<a href="ssh://{{ $oo->system->address }}:{{ $oo->system->port }}">SSH</a>@break
|
||||
@case(519)<a href="rlogin://{{ $oo->system->address }}:{{ $oo->system->port }}">SSH</a>@break
|
||||
@default No details
|
||||
@endswitch
|
||||
</td>
|
||||
<td>{{ $oo->system->last_session ? $oo->system->last_session->format('Y-m-d H:i') : '-' }}</td>
|
||||
<td>{{ join(',',$oo->system->addresses->where('zone_id',$oo->zone_id)->pluck('ftn')->toArray()) }}</td>
|
||||
<td>{{ $oo->system->zt_id }}</td>
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user