mirror of
https://github.com/key-networks/ztncui.git
synced 2025-06-05 17:53:44 +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
|
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.
|
Licensed under GPLv3 - see LICENSE for details.
|
||||||
|
|
||||||
extends network_layout
|
extends network_layout
|
||||||
|
@ -135,13 +135,15 @@ block net_content
|
||||||
td
|
td
|
||||||
if (peer)
|
if (peer)
|
||||||
each path in peer.paths
|
each path in peer.paths
|
||||||
- const [ip, port] = path.address.split('/');
|
if (path.preferred == true)
|
||||||
= ip
|
- const [ip, port] = path.address.split('/');
|
||||||
span(style='color: gray;') /#{port}
|
= ip
|
||||||
= ' '
|
span(style='color: gray;') /#{port}
|
||||||
if (peer.latency != -1)
|
= ' '
|
||||||
br
|
if (peer.latency != -1)
|
||||||
| (#{peer.latency} ms)
|
br
|
||||||
|
| (#{peer.latency} ms)
|
||||||
|
- break
|
||||||
else
|
else
|
||||||
.alert.alert-info
|
.alert.alert-info
|
||||||
strong There are no members on this network - invite users to join #{network.nwid}
|
strong There are no members on this network - invite users to join #{network.nwid}
|
||||||
|
|
Loading…
Add table
Reference in a new issue