blob: 2eb2fb5421a9c22a9e1b7d260595af4213c75ffd (
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
36
37
38
39
|
<% local data, viewlibrary, page_info, session = ...
htmlviewfunctions = require("htmlviewfunctions")
%>
<% htmlviewfunctions.displaycommandresults({"createdatabase"}, session, true) %>
<h1>Weblog Database Status</h1>
<% 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 %>
<div class='item'><p class='left'>Database status</p>
<div class='right'><p>
<% if status then %>
<% if status.value.status.errtxt then
print(status.value.status.errtxt)
else
print(status.value.status.value)
end %>
<% else %>
Unknown
<% end %>
</p></div></div><!-- end .item -->
<div class='item'><p class='left'>Weblog Database</p>
<div class='right'><p>
<% if data.value then %>
Present
<% else %>
Missing
<% end %>
</p></div></div><!-- end .item -->
<% if not data.value and viewlibrary and viewlibrary.dispatch_component then
viewlibrary.dispatch_component("createdatabase")
end %>
|