summaryrefslogtreecommitdiffstats
path: root/lbu-status-html.lsp
blob: afe0164fd82e6ae564b6ffd71abfb422a157b926 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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("basicstatus")
	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>