summaryrefslogtreecommitdiffstats
path: root/app/template-html.lsp
diff options
context:
space:
mode:
authorMika Havela <mika.havela@gmail.com>2008-01-10 15:56:48 +0000
committerMika Havela <mika.havela@gmail.com>2008-01-10 15:56:48 +0000
commit60f964e83c35c5a38d61551e10e579612e25feaa (patch)
tree4a70ad677181ca63585004cc4f1b18f584e36be3 /app/template-html.lsp
parentc9a98a8e5d513ffd3ec861996c032b16458a6fb7 (diff)
downloadacf-core-60f964e83c35c5a38d61551e10e579612e25feaa.tar.bz2
acf-core-60f964e83c35c5a38d61551e10e579612e25feaa.tar.xz
Moved login to header. The main menu needs some more work. There is a empty UL/LI on top, which shouldn't be there
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@538 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/template-html.lsp')
-rw-r--r--app/template-html.lsp19
1 files changed, 10 insertions, 9 deletions
diff --git a/app/template-html.lsp b/app/template-html.lsp
index 2981749..6e21e27 100644
--- a/app/template-html.lsp
+++ b/app/template-html.lsp
@@ -31,7 +31,15 @@ Content-Type: text/html
<div class="tailer"></div>
</div>
<span class="mute">
- <p>[ logon link will go here ] |
+ <p>
+ <? local ctlr = pageinfo.script .. "/acf-util/logon/"
+ if session.id == nil then
+ io.write ( string.format("\t\t\t\t\t\t<a href=\"%s\">Log in</a>\n", ctlr .. "logon" ) )
+ else
+ sess = session.name or "unknown"
+ io.write ( string.format("\t\t\t\t\t\t<a href=\"%s\">Log out as '" .. sess .. "'</a>\n", ctlr .. "logout" ) )
+ end ?>
+ |
<a href="/">home</a> |
<a href="http://wiki.alpinelinux.org">about</a>
</p></span>
@@ -49,14 +57,7 @@ Content-Type: text/html
<?
-- FIXME: This needs to go in a library function somewhere (menubuilder?)
- io.write ( "<ul>\n\t\t\t\t<li>Log in/out\n\t\t\t\t\t<ul>\n")
- local ctlr = pageinfo.script .. "/acf-util/logon/"
- if session.id == nil then
- io.write ( string.format("\t\t\t\t\t\t<li><a href=\"%s\">Log in</a></li>\n", ctlr .. "logon" ) )
- else
- sess = session.name or "unknown"
- io.write ( string.format("\t\t\t\t\t\t<li><a href=\"%s\">Log out as '" .. sess .. "'</a></li>\n", ctlr .. "logout" ) )
- end
+ io.write ( "<ul>\n\t\t\t\t<li style='margin:0px;padding:0px;height:0px'>\t<ul style='margin:0px;padding:0px;height:0px'>\n")
local cat, group
local class