From 99b490c0fd22df4b7fc29a0dc3c09cfebdb5cf8f Mon Sep 17 00:00:00 2001 From: riley Date: Mon, 16 Oct 2023 17:20:37 -0400 Subject: [PATCH] Minor gui tweaks --- luasrc/view/whoogle/status.htm | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/luasrc/view/whoogle/status.htm b/luasrc/view/whoogle/status.htm index be2ea29..b46f17f 100644 --- a/luasrc/view/whoogle/status.htm +++ b/luasrc/view/whoogle/status.htm @@ -10,19 +10,15 @@ local container_running = string.match(string.lower(container_status), "^up%W") <% else %> <% end %> + + <% if container_running then %> + <% + local port=util.trim(util.exec("/usr/libexec/apps/whoogle/whoogle.sh port")) + if port == "" then + port="5000" + end + -%> + + <% end %> -<% -if container_running then - local port=util.trim(util.exec("/usr/libexec/apps/whoogle/whoogle.sh port")) - if port == "" then - port="5000" - end --%> -
- -
- -
-
-<% end %> \ No newline at end of file