Console: Use green icon on /peers if status is OK

This commit is contained in:
zzz
2025-05-20 10:23:41 -04:00
parent 06bce0faf5
commit 0d21815030
3 changed files with 18 additions and 1 deletions

View File

@ -111,7 +111,10 @@ public class PeerHelper extends HelperBase {
}
renderNavBar(out);
if (_transport == null) {
out.write("<p id=\"upnpstatus\"><b>");
if (_context.commSystem().getStatus() == CommSystemFacade.Status.OK)
out.write("<p id=\"statusok\"><b>");
else
out.write("<p id=\"upnpstatus\"><b>");
out.write(_t("Status"));
out.write(": ");
out.write(_context.commSystem().getLocalizedStatusString());

View File

@ -3952,6 +3952,12 @@ p#gatherstats {
padding: 15px 15px 15px 50px;
}
p#statusok {
background: #1F1A24 url(images/confirmed.png) 12px center no-repeat;
border: 1px solid #292929;
padding: 15px 15px 15px 50px;
}
p#gatherstats {
margin-bottom: 28px !important;
}

View File

@ -3205,6 +3205,14 @@ p#gatherstats {
line-height: 130%;
}
p#statusok {
border: 1px solid #dee2e6;
padding: 15px 15px 15px 50px;
background: #fff url(images/confirmed.png) 12px center no-repeat;
background: url(images/confirmed.png) 12px center no-repeat, linear-gradient(135deg, #fafaff, #f8f8ff);
line-height: 130%;
}
p#upnpstatus,
p#keyringhelp,
.widescroll+p.infohelp,