summaryrefslogtreecommitdiffstats
path: root/lbu-status-html.lsp
blob: 796212b217fa32ba2a57d782063463f75b14748a (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
<? local view = ... ?>

<h1>SYSTEM INFO</h1>

<dl>
	<dt>Program status</dt>
		<dd><?= view.status.status or "" ?></dd>
	<dt>Program version</dt>
		<dd><?= view.status.version ?></dd>
</dl>

<H2>PROGRAM SPECIFIC OPTIONS/INFORMATION</H2>

<dl>
<? if (view.status.LBU_MEDIA) then ?>
	<dt>Archives will be saved to</dt>
		<dd><?= view.status.LBU_MEDIA ?></DD>
<? end ?>
<? if (view.status.ENCRYPTION) then ?>
	<dt>Archives will be encrypted</dt>
		<dd>yes <I>(Using cipher: <?= view.status.DEFAULT_CIPHER or "unknown" ?>)</I></DD>
<? end ?>
</dl>

<H2>CHANGES SINCE LAST COMMIT</H2>
<dl>
	<dt>Files changed since last commit</dt>
		<dd><pre><? for i = 1, table.maxn(view.lbustatus) do io.write(view.lbustatus[i]["status"] .. "\t" .. view.lbustatus[i]["name"] .. "\n") end ?></pre></DD>
</dl>

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

<? -- vim: set filetype=lua : ?>