summaryrefslogtreecommitdiffstats
path: root/did-status-html.lsp
blob: cf283126ff8dc0b57be1280bb84b5a6775451a10 (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("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 %>

<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 then
	viewlibrary.dispatch_component("createdatabase")
end %>