summaryrefslogtreecommitdiffstats
path: root/skins-read-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'skins-read-html.lsp')
-rw-r--r--skins-read-html.lsp10
1 files changed, 5 insertions, 5 deletions
diff --git a/skins-read-html.lsp b/skins-read-html.lsp
index 6cca742..78f19d7 100644
--- a/skins-read-html.lsp
+++ b/skins-read-html.lsp
@@ -4,12 +4,12 @@
<h1>Available skins</h1>
<DL>
-<? for i = 1, table.maxn(view.skin) do ?>
- <dt><?= view.skin[i].name ?></dt>
- <? if (view.skin[i].inuse) then ?>
- <dd><?= view.skin[i].inuse ?></dd>
+<? for i,skin in ipairs(view.value) do ?>
+ <dt><?= skin.value ?></dt>
+ <? if (skin.inuse) then ?>
+ <dd>in use</dd>
<? else ?>
- <dd>[<a href="update?skin=<?= view.skin[i].name ?>">use this skin</a>]</dd>
+ <dd>[<a href="update?skin=<?= skin.value ?>">use this skin</a>]</dd>
<? end ?>
<? end ?>
</DL>