diff options
author | Mika Havela <mika.havela@gmail.com> | 2007-10-24 19:47:20 +0000 |
---|---|---|
committer | Mika Havela <mika.havela@gmail.com> | 2007-10-24 19:47:20 +0000 |
commit | 0bf186cd57f0c3f9daec088daf636960b9f1f650 (patch) | |
tree | e33e92a45c30cb637adf104093efe971e00d20d8 /app | |
parent | 17dbe7a8fb7240d9fa5956d12d5be990b2ca4150 (diff) | |
download | acf-core-0bf186cd57f0c3f9daec088daf636960b9f1f650.tar.bz2 acf-core-0bf186cd57f0c3f9daec088daf636960b9f1f650.tar.xz |
Modified footer.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@227 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app')
-rw-r--r-- | app/template-html.lsp | 28 |
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> |