summaryrefslogtreecommitdiffstats
path: root/acfupdate-html.lsp
blob: c2b7d947721504fb1b6d6b80510e9cf2f392c279 (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
<? local view = ... ?>

<h1>Fetch ACF updates</h1>

<p>Click on the tab <B>update</B> to fetch/update all available projects.</p>
<p>The 'sandbox' project is not automatically fetched/checked out!<BR>
But if you have manually checked it out, you will get a update on it by pressing the <B>update</B> tab.</p>


<h2>Available projects</h2>
<pre><?= view.projects ?></pre>

<? if (view.updates) then ?>
	<h2>Summary</h2>
	<? for i = 1, table.maxn(view["updates"]["cmdresult"]) do ?>
		<? if (view["updates"]["cmdresult"][i]["updates"] ~= "") then ?>
			<h3><?= view["updates"]["cmdresult"][i]["name"] ?></h3>
			<pre><?= view["updates"]["cmdresult"][i]["updates"] ?></pre>
		<? end ?>
	<? end ?>
	<h3>-- End of updates --</h3>
<? end ?>

<?
--[[ DEBUG INFORMATION
require("debugs")
io.write(debugs.variables(view))
--]]
?>