weblog-status-html.lsp 772 Bytes
Newer Older
Ted Trask's avatar
Ted Trask committed
1 2 3 4 5 6 7
<% local data, viewlibrary, page_info, session = ... 
require("viewfunctions")
%>

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

<H1>Weblog Database Status</H1>
8
<DL>
Ted Trask's avatar
Ted Trask committed
9 10
<% local status
if viewlibrary and viewlibrary.dispatch_component then
11
	if session.permissions.postgresql and session.permissions.postgresql.status then
Ted Trask's avatar
Ted Trask committed
12 13
		status = viewlibrary.dispatch_component("postgresql/postgresql/status", nil, true)
	end
14 15 16 17 18
end %>

<DT>Database status</DT><DD>
<% if status then %>
<%= status.value.status.value %>
Ted Trask's avatar
Ted Trask committed
19
<% else %>
20
Unknown
Ted Trask's avatar
Ted Trask committed
21
<% end %>
22
</DD>
Ted Trask's avatar
Ted Trask committed
23

24
<DT>Weblog Database</DT><DD>
Ted Trask's avatar
Ted Trask committed
25
<% if data.value then %>
26
Present
Ted Trask's avatar
Ted Trask committed
27
<% else %>
28
Missing
Ted Trask's avatar
Ted Trask committed
29 30 31 32
<% if viewlibrary and viewlibrary.dispatch_component then
	viewlibrary.dispatch_component("createdatabase")
end %>
<% end %>
33 34
</DD>
</DL>