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

<h1>SYSTEM INFO</h1>

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

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

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

<? if (view.status.LBU_MEDIA) then ?>
<dl>
<dt>Archives will be saved to</dt>
<dd><?= view.status.LBU_MEDIA ?></DD>
</dl>
<? end ?>

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

<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 : ?>