diff options
Diffstat (limited to 'did-status-html.lsp')
-rw-r--r-- | did-status-html.lsp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/did-status-html.lsp b/did-status-html.lsp index 33c75b9..cf28312 100644 --- a/did-status-html.lsp +++ b/did-status-html.lsp @@ -5,23 +5,31 @@ require("viewfunctions") <% displaycommandresults({"createdatabase"}, session, true) %> <H1>DID Database Status</H1> +<DL> <% local status if viewlibrary and viewlibrary.dispatch_component then if session.permissions.postgresql and session.permissions.postgresql.status then status = viewlibrary.dispatch_component("postgresql/postgresql/status", nil, true) end -end -if status then %> -<p>Database is <%= status.value.status.value %> +end %> + +<DT>Database status</DT><DD> +<% if status then %> +<%= status.value.status.value %> <% else %> -<p>Database status unknown +Unknown <% end %> +</DD> +<DT>DID Database</DT><DD> <% if data.value then %> -<p>DID Database present +Present <% else %> -<p>DID Database missing +Missing +<% end %> +</DD> +</DL> + <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("createdatabase") end %> -<% end %> |