summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/template-html.lsp28
1 files changed, 15 insertions, 13 deletions
diff --git a/app/template-html.lsp b/app/template-html.lsp
index 784bb4e..e4add43 100644
--- a/app/template-html.lsp
+++ b/app/template-html.lsp
@@ -19,21 +19,23 @@ Content-Type: text/html
<body>
<div id=head>
-<h1>Alpine</h1>
<p>Host: <em><?= pageinfo.hostname ?></em></p>
-<? -- a quick hack
- local ctlr = pageinfo.script .. "/acf-util/logon/"
-?>
-<? if session.id == nil then
- io.write ( html.link( { label = "Log in", value = ctlr .. "logon" } ) )
- else
- io.write (html.link( { label = "Logout as " .. ( session.name or "unkown") , value = ctlr .. "logout" } ) )
- end ?></p>
+</div>
+
+<div id=logo>
</div>
<div id="mainmenu">
<?
-- FIXME: This needs to go in a library function somewhere (menubuilder?)
+
+local ctlr = pageinfo.script .. "/acf-util/logon/"
+if session.id == nil then
+ io.write ( html.link( { label = "Log in", value = ctlr .. "logon" } ) )
+else
+ io.write (html.link( { label = "Logout as " .. ( session.name or "unkown") , value = ctlr .. "logout" } ) )
+end
+
local cat, group
local liston=false
local selected
@@ -67,7 +69,6 @@ Content-Type: text/html
</ul>
</div>
-
<div id="submenu">
<h2><?= pageinfo.prefix ?> > <?= pageinfo.controller .. " > " .. pageinfo.action ?></h2>
<ul>
@@ -89,11 +90,12 @@ Content-Type: text/html
<div id="content">
<? local func = haserl.loadfile(pageinfo.viewfile)
func (viewtable) ?>
+ <div id="footer">
+ <p><center>Made with care by acf</center></p>
+ </div>
</div>
-<div id="footer">
-<p><center>Made with care by acf</center></p>
-</div>
+
</body>
</html>