From ee66f91e68bbe489146f087d3bb12c124ce2b1c2 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 11 Apr 2022 01:44:19 +0200 Subject: index.html: display placeholders if no data --- html/index.html | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/html/index.html b/html/index.html index 5a4f56f..a116867 100644 --- a/html/index.html +++ b/html/index.html @@ -25,32 +25,34 @@

top refreshed every - seconds

-

+            
Data not loaded.

docker ps -a

-
No data has been loaded yet.
+
+
Data not loaded.
+

systemctl --system list-units --failed

-

+            
Data not loaded.

systemctl --system status

-

+            
Data not loaded.

systemctl --system list-timers --all

-

+            
Data not loaded.

journalctl --system -b --lines=20

-

+            
Data not loaded.

@@ -258,7 +260,8 @@ function create_user_block(name, lbl, cmd) { .append($('', a_params) .append($('').text(cmd)))) .append($('
', {'class': 'collapse', id: collapse_id}) - .append($('
', {'class': 'pre-scrollable', id: pre_id})))
+            .append($('
', {'class': 'pre-scrollable', id: pre_id})
+                .text('Data not loaded.')))
         .append($('
')); } -- cgit v1.2.3