summaryrefslogtreecommitdiffstats
path: root/lbu-listchanges-html.lsp
blob: 0733e96fffd6c04f386afb877364d753c6121996 (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
32
33
34
35
36
37
38
39
40
41
42
<% local view, 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(view))
io.write("</span>")
--]]
%>

<% displaycommandresults({"commit"}, session, true) %>

<% if viewlibrary and viewlibrary.dispatch_component then
	viewlibrary.dispatch_component("status")
	if session.permissions.lbu.commit then
		viewlibrary.dispatch_component("commit")
	end
end %>

<% if session.permissions.lbu.getpackage then %>
<H1>Download Overlay</H1>
<DL>
	<DT>Generate and download overlay</DT>
	<DD><form action="<%= page_info.script .. page_info.prefix %>lbu/getpackage" method="POST">
	<input class="submit" type="submit" name="Download" value="Download"></form></DD>
</DL>
<% 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>