summaryrefslogtreecommitdiffstats
path: root/template-welcome-read-html.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'template-welcome-read-html.lsp')
-rw-r--r--template-welcome-read-html.lsp12
1 files changed, 6 insertions, 6 deletions
diff --git a/template-welcome-read-html.lsp b/template-welcome-read-html.lsp
index a7fc4f8..e23b0c9 100644
--- a/template-welcome-read-html.lsp
+++ b/template-welcome-read-html.lsp
@@ -1,9 +1,9 @@
-<% local viewtable, viewlibrary, pageinfo, session = ...
+<% local viewtable, viewlibrary, pageinfo, session = ...
html=require("acf.html") %>
Status: 200 OK
Content-Type: text/html
-<% if (session.id) then
- io.write( html.cookie.set("sessionid", session.id) )
+<% if (session.id) then
+ io.write( html.cookie.set("sessionid", session.id) )
else
io.write (html.cookie.unset("sessionid"))
end
@@ -53,7 +53,7 @@ end
<span><%= html.html_escape(hostname or "unknown hostname") %></span></li>
<li>
<% local ctlr = pageinfo.script .. "/acf-util/logon/"
-
+
if session.userinfo and session.userinfo.userid then
io.write ( string.format("\t\t\t\t\t\t<a href=\"%s\">Log off as '" .. html.html_escape(session.userinfo.userid) .. "'</a>\n", html.html_escape(ctlr) .. "logoff" ) )
else
@@ -70,7 +70,7 @@ end
<div id="content" class="content-primary">
<% if session.userinfo and session.userinfo.userid then %>
<nav><div id="nav">
- <%
+ <%
local class
local tabs
io.write ('<ul data-role="listview" data-inset="true" data-theme="c" data-divider-theme="b" data-filter="true">')
@@ -83,7 +83,7 @@ end
class="class='selected'"
tabs = group.tabs
end
- io.write (string.format("\t\t\t\t<li %s><a %s href=\"%s%s%s/%s\">%s</a></li>\n",
+ io.write (string.format("\t\t\t\t<li %s><a %s href=\"%s%s%s/%s\">%s</a></li>\n",
class,class,html.html_escape(pageinfo.script),
html.html_escape(group.tabs[1].prefix), html.html_escape(group.tabs[1].controller),
html.html_escape(group.tabs[1].action), html.html_escape(group.name) ))