summaryrefslogtreecommitdiffstats
path: root/apk-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'apk-html.lsp')
-rw-r--r--apk-html.lsp67
1 files changed, 0 insertions, 67 deletions
diff --git a/apk-html.lsp b/apk-html.lsp
deleted file mode 100644
index afc62bd..0000000
--- a/apk-html.lsp
+++ /dev/null
@@ -1,67 +0,0 @@
-<% local form, viewlibrary, page_info, session = ... %>
-<% require("viewfunctions") %>
-<%
---[[ DEBUG INFORMATION
-io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
-io.write(html.cfe_unpack(form))
-io.write("</span>")
---]]
-%>
-
-<% displaycommandresults({"delete", "install"}, session) %>
-
-<% if form.value.loaded then %>
-<H1>Loaded Packages</H1>
-<DL>
-<TABLE>
- <TR style="background:#eee;font-weight:bold;">
- <% if session.permissions.apk.delete then %>
- <TD style="padding-right:20px;white-space:nowrap;" class="header">Delete</TD>
- <% end %>
- <TD style="padding-right:20px;white-space:nowrap;" class="header">Package Name</TD>
- <TD style="padding-right:20px;white-space:nowrap;" class="header">Version</TD>
- <TD style="white-space:nowrap;" class="header">Description</TD>
- </TR>
-
-<% for i,packagetable in pairs(form.value.loaded.value) do %>
- <TR>
- <% if session.permissions.apk.delete then %>
- <TD style="padding-right:20px;white-space:nowrap;">
- <%= html.link{value = "delete?package=" .. packagetable.name, label="Delete"} %>
- </TD>
- <% end %>
- <TD><%= html.html_escape(packagetable.name) %></TD>
- <TD><%= html.html_escape(packagetable.version) %></TD>
- <TD><%= html.html_escape(packagetable.description) %></TD>
- </TR>
-<% end %>
-</TABLE>
-</DL>
-<% end %>
-
-<% if form.value.available then %>
-<H1>Available Packages</H1>
-<DL>
-<TABLE>
- <TR style="background:#eee;font-weight:bold;">
- <% if session.permissions.apk.install then %>
- <TD style="padding-right:20px;white-space:nowrap;" class="header">Install</TD>
- <% end %>
- <TD style="padding-right:20px;white-space:nowrap;" class="header">Package Name</TD>
- <TD style="white-space:nowrap;" WIDTH="90%" class="header">Version</TD>
- </TR>
-
-<% for i,packagetable in pairs(form.value.available.value) do %>
- <TR>
- <% if session.permissions.apk.install then %>
- <TD style="padding-right:20px;white-space:nowrap;">
- <%= html.link{value = "install?package=" .. packagetable.name, label="Install"} %>
- </TD>
- <% end %>
- <TD><%= html.html_escape(packagetable.name) %></TD>
- <TD><%= html.html_escape(packagetable.version) %></TD>
- </TR>
-<% end %>
-</TABLE>
-</DL>
-<% end %>