summaryrefslogtreecommitdiffstats
path: root/lbu-listchanges-html.lsp
blob: 2b65046a2e0a4ce9fb898ac33b1e4d35acde8201 (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
<% local view, viewlibrary, page_info, session = ... 
htmlviewfunctions = require("htmlviewfunctions")
html = require("acf.html")
%>

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

<%
	viewlibrary.dispatch_component("status")
	if viewlibrary.check_permission("commit") then
		viewlibrary.dispatch_component("commit")
	end
%>

<%
if viewlibrary.check_permission("getpackage") then
	local viewtype = cfe({type="hidden", value="stream"})
	htmlviewfunctions.displayitem(cfe({type="form", value={viewtype=viewtype}, label="Download Overlay", option="Download", action="getpackage" }), page_info)
end
%>

<% local header_level = htmlviewfunctions.displaysectionstart(view, page_info) %>
	<% htmlviewfunctions.displayitemstart() %>
	Files changed since last commit
	<% htmlviewfunctions.displayitemmiddle() %>
	<pre><% 
		if (#view.value == 0) then
			io.write("None")
		else
			for i,file in pairs(view.value) do
				io.write((html.html_escape(file.status .. "\t" .. file.name .. "\n")))
			end
		end
	%></pre>
	<% htmlviewfunctions.displayitemend() %>
<% htmlviewfunctions.displaysectionend(header_level) %>