<% local data, viewlibrary, page_info, session = ... require("viewfunctions") %> <% displaycommandresults({"createdatabase"}, session, true) %>

Weblog Database Status

<% 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 %>

Database is <%= status.value.status.value %> <% else %>

Database status unknown <% end %> <% if data.value then %>

Weblog Database present <% else %>

Weblog Database missing <% if viewlibrary and viewlibrary.dispatch_component then viewlibrary.dispatch_component("createdatabase") end %> <% end %>