Fix zone table in status
This commit is contained in:
parent
5866f091ed
commit
0185722e19
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
@ -83,7 +83,7 @@ const zoneTableTemplate = `
|
||||||
<thead><tr>
|
<thead><tr>
|
||||||
<th>Network</th>
|
<th>Network</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Local</th>
|
<th>Local Port</th>
|
||||||
<th>Last seen</th>
|
<th>Last seen</th>
|
||||||
</tr></thead>
|
</tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -91,7 +91,7 @@ const zoneTableTemplate = `
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{$zone.Network}}</td>
|
<td>{{$zone.Network}}</td>
|
||||||
<td>{{$zone.Name}}</td>
|
<td>{{$zone.Name}}</td>
|
||||||
<td>{{if $zone.Local}}✅{{else}}❌{{end}}</td>
|
<td>{{with $zone.LocalPort}}{{.Device}}{{else}}-{{end}}</td>
|
||||||
<td>{{$zone.LastSeenAgo}}</td>
|
<td>{{$zone.LastSeenAgo}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Reference in a new issue