mirror of
https://github.com/key-networks/ztncui.git
synced 2025-04-26 14:33:45 +02:00
issue#91: Fix in views/network_detail.pug
This commit is contained in:
parent
0557b386a9
commit
1fb103a07a
1 changed files with 10 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
|||
//-
|
||||
ztncui - ZeroTier network controller UI
|
||||
Copyright (C) 2017-2021 Key Networks (https://key-networks.com)
|
||||
Copyright (C) 2017-2023 Key Networks (https://key-networks.com)
|
||||
Licensed under GPLv3 - see LICENSE for details.
|
||||
|
||||
extends network_layout
|
||||
|
@ -135,13 +135,15 @@ block net_content
|
|||
td
|
||||
if (peer)
|
||||
each path in peer.paths
|
||||
- const [ip, port] = path.address.split('/');
|
||||
= ip
|
||||
span(style='color: gray;') /#{port}
|
||||
= ' '
|
||||
if (peer.latency != -1)
|
||||
br
|
||||
| (#{peer.latency} ms)
|
||||
if (path.preferred == true)
|
||||
- const [ip, port] = path.address.split('/');
|
||||
= ip
|
||||
span(style='color: gray;') /#{port}
|
||||
= ' '
|
||||
if (peer.latency != -1)
|
||||
br
|
||||
| (#{peer.latency} ms)
|
||||
- break
|
||||
else
|
||||
.alert.alert-info
|
||||
strong There are no members on this network - invite users to join #{network.nwid}
|
||||
|
|
Loading…
Add table
Reference in a new issue