summaryrefslogtreecommitdiffstats
path: root/app/status-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-11 12:57:42 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-11 12:57:42 +0000
commit040350eced7897f52402c466d14378ca62cf00b1 (patch)
tree5e62bfed641d1ee9551a114b869cd419019a6796 /app/status-html.lsp
parent5ff7837be35aab168c05a6efc0e5945e2f664b63 (diff)
downloadacf-core-040350eced7897f52402c466d14378ca62cf00b1.tar.bz2
acf-core-040350eced7897f52402c466d14378ca62cf00b1.tar.xz
Added rc controller to alpine-baselayout and rc functionality to processinfo library. Changed status Enabled/Disabled to Running/Stopped. Added links to status pages to install package and schedule autostart.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1552 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/status-html.lsp')
-rw-r--r--app/status-html.lsp14
1 files changed, 13 insertions, 1 deletions
diff --git a/app/status-html.lsp b/app/status-html.lsp
index 4cb693f..d5bdad0 100644
--- a/app/status-html.lsp
+++ b/app/status-html.lsp
@@ -1,12 +1,24 @@
-<% local data = ...
+<% local data, viewlibrary, page_info, session = ...
require("viewfunctions")
%>
+<% displaycommandresults({"install"}, session) %>
+
<H1>System Info</H1>
<DL>
<%
displayitem(data.value.status)
+
displayitem(data.value.version)
+if data.value.version and data.value.version.errtxt and session.permissions.apk and session.permissions.apk.install then
+%>
+ <a href="<%= page_info.script .. "/apk-tools/apk/install?package="..data.value.version.name %>">Install</a>
+<%
+end
+
displayitem(data.value.autostart)
+if not (data.value.version and data.value.version.errtxt) and data.value.autostart and data.value.autostart.errtxt and session.permissions.rc and session.permissions.rc.edit then
%>
+ <a href="<%= page_info.script .. "/alpine-baselayout/rc/edit?servicename="..data.value.autostart.name %>">Schedule autostart</a>
+<% end %>
</DL>