diff options
author | Natanael Copa <natanael.copa@gmail.com> | 2008-07-28 06:48:16 +0000 |
---|---|---|
committer | Natanael Copa <natanael.copa@gmail.com> | 2008-07-28 06:48:16 +0000 |
commit | 5aa214f71f495db0d0d75e9e16f2677d6a09f585 (patch) | |
tree | 051e1f9282f71121d7f8125dd22e32beb92c57e3 /health-storage-html.lsp | |
parent | 9fcda9ad78f8c42ed291c10e8bfea3e3000c30a3 (diff) | |
download | acf-alpine-baselayout-5aa214f71f495db0d0d75e9e16f2677d6a09f585.tar.bz2 acf-alpine-baselayout-5aa214f71f495db0d0d75e9e16f2677d6a09f585.tar.xz |
use <% %> instead of <? ?>
git-svn-id: svn://svn.alpinelinux.org/acf/alpine-baselayout/trunk@1323 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'health-storage-html.lsp')
-rw-r--r-- | health-storage-html.lsp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/health-storage-html.lsp b/health-storage-html.lsp index 4e9a0a8..cd9162e 100644 --- a/health-storage-html.lsp +++ b/health-storage-html.lsp @@ -1,6 +1,6 @@ -<? local view = ... ?> +<% local view = ... %> -<? displaydisk = function(disk, name) +<% displaydisk = function(disk, name) io.write("<pre>"..disk.value.."</pre>\n") io.write('<TABLE STYLE="margin:0px;padding:0px;border:0px">\n') io.write(" <TR>\n") @@ -27,39 +27,39 @@ io.write(" <TR>\n") io.write(' <TD WIDTH="100px"><B>'..name..'</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>\n') io.write(" </TR>\n") io.write("</TABLE>\n") -end ?> +end %> <h1>Storage</h1> <h2>Floppy capacity</h2> -<? if (view.value.floppy) then +<% if (view.value.floppy) then for name,floppy in pairs(view.value.floppy.value) do displaydisk(floppy, name) end -else ?> +else %> No Floppy mounted -<? end ?> +<% end %> <h2>Harddrive capacity</h2> -<? if (view.value.hd) then +<% if (view.value.hd) then for name,hd in pairs(view.value.hd.value) do displaydisk(hd, name) end -else ?> +else %> No Harddrive mounted -<? end ?> +<% end %> <h2>RAM Disk capacity</h2> -<? if (view.value.ramdisk) then +<% if (view.value.ramdisk) then for name,ramdisk in pairs(view.value.ramdisk.value) do displaydisk(ramdisk, name) end -else ?> +else %> No RAM Disk mounted -<? end ?> +<% end %> -<? if view.value.partitions then ?> +<% if view.value.partitions then %> <h2>Disk partitions</h2> -<pre><?= view.value.partitions.value ?></pre> -<? end ?> +<pre><%= view.value.partitions.value %></pre> +<% end %> |