summaryrefslogtreecommitdiffstats
path: root/lbu-listchanges-html.lsp
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-07-04 14:54:19 +0000
committerTed Trask <ttrask01@yahoo.com>2008-07-04 14:54:19 +0000
commita0f64cff3dfc675ed5ea641c10be72c842b693d5 (patch)
treed49c25941ade8d3463141fde095a077b48fc29e1 /lbu-listchanges-html.lsp
parente36290cc32c9d9a7b70e1ce09127517be7aadf9a (diff)
downloadacf-alpine-conf-a0f64cff3dfc675ed5ea641c10be72c842b693d5.tar.bz2
acf-alpine-conf-a0f64cff3dfc675ed5ea641c10be72c842b693d5.tar.xz
Modified lbu to use controllerfunctions, modelfunctions, and common lsp files. Moved basicstatus->status and status->listchanges.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-conf/trunk@1276 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lbu-listchanges-html.lsp')
-rw-r--r--lbu-listchanges-html.lsp31
1 files changed, 31 insertions, 0 deletions
diff --git a/lbu-listchanges-html.lsp b/lbu-listchanges-html.lsp
new file mode 100644
index 0000000..0cc7f03
--- /dev/null
+++ b/lbu-listchanges-html.lsp
@@ -0,0 +1,31 @@
+<? local view, viewlibrary, pageinfo, session = ...
+require("viewfunctions")
+?>
+<?
+--[[ DEBUG INFORMATION
+io.write("<H1>DEBUGGING</H1><span style='color:red'><H2>DEBUG INFO: CFE</H2>")
+io.write(html.cfe_unpack(view))
+io.write("</span>")
+--]]
+?>
+
+<? if viewlibrary and viewlibrary.dispatch_component then
+ viewlibrary.dispatch_component("status")
+ if session.permissions.lbu.commit then
+ viewlibrary.dispatch_component("commit")
+ end
+end ?>
+
+<H1>Changes Since Last Commit</H1>
+<DL>
+ <dt>Files changed since last commit</dt>
+ <dd><pre><?
+ if (#view.value == 0) then
+ io.write("None")
+ else
+ for i,file in pairs(view.value) do
+ io.write(file.status .. "\t" .. file.name .. "\n")
+ end
+ end
+ ?></pre></DD>
+</DL>