summaryrefslogtreecommitdiffstats
path: root/health-storage-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-03-03 16:46:34 +0000
committerMika Havela <mika.havela@gmail.com>2008-03-03 16:46:34 +0000
commit9105241131959add39153838e3fe2e3f3b16feab (patch)
tree481eefdbfba7a85b0fe67495e7b2e163c6f035b0 /health-storage-html.lsp
parentce6ad17d4ae1b5cc5cca98504ed9f4830dec4483 (diff)
downloadacf-alpine-baselayout-9105241131959add39153838e3fe2e3f3b16feab.tar.bz2
acf-alpine-baselayout-9105241131959add39153838e3fe2e3f3b16feab.tar.xz
Changed the looks of the status-bar 0%-100%. Changed green color and put a border around the graph.
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@789 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'health-storage-html.lsp')
-rw-r--r--health-storage-html.lsp12
1 files changed, 6 insertions, 6 deletions
diff --git a/health-storage-html.lsp b/health-storage-html.lsp
index a95351a..7b8f149 100644
--- a/health-storage-html.lsp
+++ b/health-storage-html.lsp
@@ -8,12 +8,12 @@
<? 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;"><CENTER><? if ( tonumber(view.storage.floppycapacity.used) > 10) then io.write(view.storage.floppycapacity.used .. "%") end ?></CENTER></TD><TD WIDTH="<?= (100-view.storage.floppycapacity.used) ?>%" STYLE="background:green;"><CENTER><? if ( 90 > tonumber(view.storage.floppycapacity.used)) then io.write((100-view.storage.floppycapacity.used) .. "%") end ?></CENTER></TD><TD>100%</TD>
+ <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">
+<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;" WIDTH="20px"></TD><TD WIDTH="70px"><B>=Used</B></TD><TD STYLE="background:green;" WIDTH="20px"></TD><TD><B>=Free</B></TD>
+ <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 ?>
@@ -24,12 +24,12 @@
<? 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;"><CENTER><? if ( tonumber(view.storage.hdcapacity.used) > 10) then io.write(view.storage.hdcapacity.used .. "%") end ?></CENTER></TD><TD WIDTH="<?= (100-view.storage.hdcapacity.used) ?>%" STYLE="background:green;"><CENTER><? if ( 90 > tonumber(view.storage.hdcapacity.used)) then io.write((100-view.storage.hdcapacity.used) .. "%") end ?></CENTER></TD><TD>100%</TD>
+ <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">
+<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;" WIDTH="20px"></TD><TD WIDTH="70px"><B>=Used</B></TD><TD STYLE="background:green;" WIDTH="20px"></TD><TD><B>=Free</B></TD>
+ <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 ?>