From f715644e25873f2e9f80c18a0503b9906ad6595c Mon Sep 17 00:00:00 2001 From: glyph Date: Thu, 27 Jan 2022 11:01:12 +0200 Subject: [PATCH] display system startup mode --- peach-web/templates/status/scuttlebutt.html.tera | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/peach-web/templates/status/scuttlebutt.html.tera b/peach-web/templates/status/scuttlebutt.html.tera index 81f06e2..d99eb5e 100644 --- a/peach-web/templates/status/scuttlebutt.html.tera +++ b/peach-web/templates/status/scuttlebutt.html.tera @@ -31,10 +31,18 @@ {% if sbot_stats.state == "active" %}

{{ sbot_stats.uptime }}

- {%- else -%} + {# render downtime element if downtime is `Some(time)` #} + {# downtime will be `None` if service is stopped and disabled #} + {%- elif sbot_stats.downtime -%}

{{ sbot_stats.downtime }}

{%- endif -%} + + {% if sbot_stats.boot_state == "enabled" %} +

Enabled

+ {% else %} +

Disabled

+ {%- endif -%}