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 -%}