summaryrefslogtreecommitdiffstats
path: root/ospf-status-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'ospf-status-html.lsp')
l---------[-rwxr-xr-x]ospf-status-html.lsp34
1 files changed, 1 insertions, 33 deletions
diff --git a/ospf-status-html.lsp b/ospf-status-html.lsp
index 1f5e1f8..b2f8480 100755..120000
--- a/ospf-status-html.lsp
+++ b/ospf-status-html.lsp
@@ -1,33 +1 @@
-<% local data, viewlibrary, page_info, session = ...
-require("viewfunctions")
-%>
-
-<% displaycommandresults({"install","edit"}, session) %>
-<% displaycommandresults({"startstop"}, session) %>
-
-<H1>System Info</H1>
-<DL>
-<%
-displayitem(data.value.status)
-
-displayitem(data.value.version)
-if data.value.version and data.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then
-%>
- <DT>Install package</DT>
- <DD><form action="<%= html.html_escape(page_info.script .. "/apk-tools/apk/install?package="..data.value.version.name) %>" method="POST">
- <input class='submit' type='submit' value='Install'></form></DD>
-<%
-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 viewlibrary.check_permission("alpine-baselayout/rc/edit") then
-%>
- <DT>Enable autostart</DT>
- <DD><form action="<%= html.html_escape(page_info.script .. "/alpine-baselayout/rc/edit?servicename="..data.value.autostart.name.."&redir=".. page_info.orig_action) %>" method="POST">
- <input class='submit' type='submit' value='Enable'></form></DD>
-<% end %>
-</DL>
-
-<% if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("startstop") then
- viewlibrary.dispatch_component("startstop")
-end %>
+../status-html.lsp \ No newline at end of file