From 856015e04d5da57b651301d061585510c78c1923 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 31 Dec 2013 00:34:48 +0000 Subject: Switch HTML template to HTML5 and cleanup code by removing extra divs Removed div class leader, tailer, and mute Removed div id logo and postnav --- app/template-html.lsp | 253 +++++++++++++++++++++----------------------------- 1 file changed, 107 insertions(+), 146 deletions(-) (limited to 'app') diff --git a/app/template-html.lsp b/app/template-html.lsp index 9277736..92550a4 100644 --- a/app/template-html.lsp +++ b/app/template-html.lsp @@ -2,177 +2,138 @@ html=require("acf.html") %> Status: 200 OK Content-Type: text/html -<% if (session.id) then +<% +if (session.id) then io.write( html.cookie.set("sessionid", session.id) ) - else +else io.write (html.cookie.unset("sessionid")) - end +end %> - - - - - <% local hostname = "" - -if pageinfo.skinned ~= "false" then - -if viewlibrary and viewlibrary.dispatch_component then +if pageinfo.skinned ~= "false" and viewlibrary and viewlibrary.dispatch_component then local result = viewlibrary.dispatch_component("alpine-baselayout/hostname/read", nil, true) if result and result.value then hostname = result.value end end %> -<%= html.html_escape(hostname .. " - " .. pageinfo.controller .. "->" .. pageinfo.action) %> - -"> - - - - -<% end -- pageinfo.skinned %> - - -<% if pageinfo.skinned ~= "false" then %> -
- + + + + + + + + -
-
-
+<% if pageinfo.skinned ~= "false" then %> + <%= html.html_escape(hostname .. " - " .. pageinfo.controller .. "->" .. pageinfo.action) %> + + + "> + + + + + +<% end -- pageinfo.skinned %> - - - -
-
-
-

<%= html.html_escape(pageinfo.controller) %> : <%= html.html_escape(pageinfo.action) %>

- -

[ welcome ] > [ logon ] > [ bgp ] > [ firewall ] > [ content filter ] > [ interfaces ]

-
-
-
- - - - + + -
-
-
- -
-
-
+
<% end --pageinfo.skinned %> - <% pageinfo.viewfunc(viewtable, viewlibrary, pageinfo, session) %> + <% pageinfo.viewfunc(viewtable, viewlibrary, pageinfo, session) %> <% if pageinfo.skinned ~= "false" then %> -
-
-
+
-
+ - - -<% end --pageinfo.skinned %> + - + +<% end --pageinfo.skinned %> + + -- cgit v1.2.3