summaryrefslogtreecommitdiffstats
path: root/lbu-listchanges-html.lsp
diff options
context:
space:
mode:
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>