From e718889485dbdfa447b9b470c0dfe5e78c5818f5 Mon Sep 17 00:00:00 2001 From: glyph Date: Wed, 26 Jan 2022 11:48:34 +0200 Subject: [PATCH] update sbot status page and add live data retrieval --- .../templates/status/scuttlebutt.html.tera | 95 +++++++++++++++++-- 1 file changed, 88 insertions(+), 7 deletions(-) diff --git a/peach-web/templates/status/scuttlebutt.html.tera b/peach-web/templates/status/scuttlebutt.html.tera index 29181de..4268c07 100644 --- a/peach-web/templates/status/scuttlebutt.html.tera +++ b/peach-web/templates/status/scuttlebutt.html.tera @@ -1,17 +1,98 @@ {%- extends "nav" -%} {%- block card %} + {# ASSIGN VARIABLES #} + {# ---------------- #} + {%- if sbot_stats.memory -%} + {% set mem = sbot_stats.memory / 1024 / 1024 | round -%} + {%- else -%} + {% set mem = "X" -%} + {%- endif -%}
-
-

Network key:

-

Replication hops:

-

Sbot version:

-

Process status:

-

Process uptime:

+ +
+ +
+ + + Configure + + + +
+ Hermies + +
+ + +
+ +

1.1.0-alpha

+ {% if sbot_stats.state == "active" %} + +

{{ sbot_stats.uptime }}

+ {%- else -%} + +

{{ sbot_stats.downtime }}

+ {%- endif -%} +
+
+
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ + +
+ +
+
+ +
+ + +
+ +
+
{%- endblock card -%}