From bd28e705a4e9882363eac42c4a5a15801e879a59 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 22 Aug 2023 19:38:58 +0300 Subject: [PATCH] show 'this connection' label when remote host has current peer address --- .../assets/theme/default/css/framework.css | 22 +++++++++++++++++++ src/public/peer.php | 10 ++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/src/public/assets/theme/default/css/framework.css b/src/public/assets/theme/default/css/framework.css index 1b350b3..25d064a 100644 --- a/src/public/assets/theme/default/css/framework.css +++ b/src/public/assets/theme/default/css/framework.css @@ -44,6 +44,16 @@ color: #5785b7; } +.label { + padding: 4px 8px; + border-radius: 3px; +} + +.label-green { + color: #277b1b; + border: 1px #92bc8c solid; +} + .line-height-26 { line-height: 26px; } @@ -62,6 +72,18 @@ cursor: default; } +.cursor-help { + cursor: help; +} + +.font-width-normal { + font-weight: normal; +} + +.font-size-12 { + font-size: 12px; +} + .font-size-22 { font-size: 22px; } diff --git a/src/public/peer.php b/src/public/peer.php index 4debd18..1eeed19 100644 --- a/src/public/peer.php +++ b/src/public/peer.php @@ -224,7 +224,15 @@ $peerPortStatuses = $db->findLastPeerPortStatusesByPeerId($requestPeerId);
-

address) ?>

+

+ address) ?> + address == $_SERVER['REMOTE_ADDR']) { ?> + + + + +

+