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

<% 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 %>
<h1>Download Overlay</h1>
<div class="item">
	<p class="left">Generate and download overlay</p>
	<div class="right">
		<form action="<%= html.html_escape(page_info.script .. page_info.prefix) %>lbu/getpackage" method="POST">
			<input class="submit" type="submit" name="submit" value="Download" />
		</form>
	</div>
</div><!-- end .item -->
<% end %>

<h1>Changes Since Last Commit</h1>
<div class="item">
	<p class="left">Files changed since last commit</p>
	<div class="right">
		<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>
	</div>
</div><!-- end .item -->