blob: f8f5b73a15edbcd28ae1861dc5a8c4b52bb89d65 (
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
|
<? local view = ... ?>
<h1>Storage</h1>
<h2>Floppy capacity</h2>
<pre><?= view.storage.floppycapacity.value ?></pre>
<? if (view.storage.floppycapacity.used) then ?>
<TABLE STYLE="margin:0px;padding:0px;border:0px">
<TR>
<TD>0%</TD><TD WIDTH="<?= view.storage.floppycapacity.used ?>%" STYLE="background:red;border:2px solid black;border-right:none;"><CENTER><B><? if ( tonumber(view.storage.floppycapacity.used) > 10) then io.write(view.storage.floppycapacity.used .. "%") end ?></B></CENTER></TD><TD WIDTH="<?= (100-view.storage.floppycapacity.used) ?>%" STYLE="background:#0c0;border:2px solid black;border-left:none;"><CENTER><B><? if ( 90 > tonumber(view.storage.floppycapacity.used)) then io.write((100-view.storage.floppycapacity.used) .. "%") end ?></B></CENTER></TD><TD>100%</TD>
</TR>
</TABLE>
<TABLE STYLE="margin:0px;padding:0px;border:0px;margin-top:5px;">
<TR>
<TD WIDTH="100px"><B><?= view.storage.floppycapacity.used_label ?></B></TD><TD STYLE="background:red;border:2px solid black;" WIDTH="20px"></TD><TD WIDTH="70px"><B>=Used</B></TD><TD STYLE="background:#0c0;border:2px solid black;" WIDTH="20px"></TD><TD><B>=Free</B></TD>
</TR>
</TABLE>
<? end ?>
<h2>Disk capacity</h2>
<pre><?= view.storage.hdcapacity.value ?></pre>
<? if (view.storage.hdcapacity.used) then ?>
<TABLE STYLE="margin:0px;padding:0px;border:0px">
<TR>
<TD>0%</TD><TD WIDTH="<?= view.storage.hdcapacity.used ?>%" STYLE="background:red;border:2px solid black;border-right:none;"><CENTER><B><? if ( tonumber(view.storage.hdcapacity.used) > 10) then io.write(view.storage.hdcapacity.used .. "%") end ?></B></CENTER></TD><TD WIDTH="<?= (100-view.storage.hdcapacity.used) ?>%" STYLE="background:#0c0;border:2px solid black;border-left:none;"><CENTER><B><? if ( 90 > tonumber(view.storage.hdcapacity.used)) then io.write((100-view.storage.hdcapacity.used) .. "%") end ?><B/></CENTER></TD><TD>100%</TD>
</TR>
</TABLE>
<TABLE STYLE="margin:0px;padding:0px;border:0px;margin-top:5px;">
<TR>
<TD WIDTH="100px"><B><?= view.storage.hdcapacity.used_label ?></B></TD><TD STYLE="background:red;border:2px solid black;" WIDTH="20px"></TD><TD WIDTH="70px"><B>=Used</B></TD><TD STYLE="background:#0c0;border:2px solid black;" WIDTH="20px"></TD><TD><B>=Free</B></TD>
</TR>
</TABLE>
<? end ?>
<h2>Disk partitions</h2>
<pre><?= view.storage.partitions ?></pre>
|