summaryrefslogtreecommitdiffstats
path: root/did-status-html.lsp
blob: d12eaa5f69b82c29183ca06bc933914f378d72d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<% local data, viewlibrary, page_info, session = ... 
require("htmlviewfunctions")
%>

<% htmlviewfunctions.displaycommandresults({"createdatabase"}, session, true) %>

<H1>DID Database Status</H1>
<DL>
<% local status
if viewlibrary and viewlibrary.dispatch_component then
	if viewlibrary.check_permission("postgresql/postgresql/status") then
		status = viewlibrary.dispatch_component("postgresql/postgresql/status", nil, true)
	end
end %>

<DT>Database status</DT><DD>
<% if status then %>
<%= status.value.status.value %>
<% else %>
Unknown
<% end %>
</DD>

<DT>DID Database</DT><DD>
<% if data.value then %>
Present
<% else %>
Missing
<% end %>
</DD>
</DL>

<% if viewlibrary and viewlibrary.dispatch_component and not data.value then
	viewlibrary.dispatch_component("createdatabase")
end %>