From d85d9d0224258976c11686adbd6e1678a2ea431b Mon Sep 17 00:00:00 2001 From: dr|z3d Date: Thu, 19 Aug 2021 21:42:47 +0000 Subject: [PATCH] Console: indicate which log level is active --- daemon/HTTPServer.cpp | 21 ++++++++++++++------- webconsole/style.css | 11 ++++++++++- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/daemon/HTTPServer.cpp b/daemon/HTTPServer.cpp index d477eaa9..da431607 100644 --- a/daemon/HTTPServer.cpp +++ b/daemon/HTTPServer.cpp @@ -1046,7 +1046,7 @@ namespace http { void ShowTunnels (std::stringstream& s) { - s << "" << tr("Client Tunnels") << "\r\n"; + s << "" << tr("Local Tunnels") << "\r\n"; s << "" << tr("Queue size") << ": " << i2p::tunnel::tunnels.GetQueueSize () << "\r\n"; auto ExplPool = i2p::tunnel::tunnels.GetExploratoryPool (); @@ -1111,7 +1111,7 @@ namespace http { } // s << "" << tr("Exploratory") << "------" // << "View\r\n" - s << "" << tr("Client") << "------" + s << "" << tr("Local") << "------" << "View\r\n" // << "" << tr("Service") << "count in/outView\r\n" << ""; @@ -1247,13 +1247,20 @@ namespace http { << tr("Note: Configuration changes made here persist for the duration of the router session and will not be saved to your config file.") << "\r\n"; + const LogLevel loglevel = i2p::log::Logger().GetLogLevel(); s << "" << tr("Logging Level") << "\r\n"; s << ""; - s << "none\r\n"; - s << "error\r\n"; - s << "warn\r\n"; - s << "info\r\n"; - s << "debug\r\n"; + s << "none\r\n"; + s << "error\r\n"; + s << "warn\r\n"; + s << "info\r\n"; + s << "debug" + << "\r\n"; if (i2p::context.AcceptsTunnels ()) { uint16_t maxTunnels = GetMaxNumTransitTunnels (); diff --git a/webconsole/style.css b/webconsole/style.css index b72b7bd6..d228d893 100644 --- a/webconsole/style.css +++ b/webconsole/style.css @@ -314,11 +314,15 @@ a.button:hover, a.button:focus { background: var(--button_hover) !important; } -button:active, a.button:active, .slide label:active, td.streamid:active { +button:active, a.button:active, .slide label:active, td.streamid:active, .button.selected { box-shadow: var(--highlight), var(--active_shadow); background: var(--button_active) !important; } +.button.selected { + pointer-events: none; +} + .streamid:hover a { color: var(--link_hover); } @@ -1459,6 +1463,11 @@ input[type=checkbox]:checked + label::after { .note { padding: 15px 90px !important; } + + .button.selected { + padding-left: 16px; + background: var(--yes) no-repeat 10px center / 12px, var(--button_active) !important; + } } @media screen and (min-width: 1200px) and (min-height: 600px) {