From 07643facbc2469261b125982a44651ed87f44ad3 Mon Sep 17 00:00:00 2001 From: Mika Havela Date: Sat, 12 Jan 2008 12:35:29 +0000 Subject: Fixed broken menu (used to be a unused ul,li). git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@555 ab2d0c66-481e-0410-8bed-d214d4d58bed --- app/template-html.lsp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/template-html.lsp b/app/template-html.lsp index 6e21e27..bef5fa9 100644 --- a/app/template-html.lsp +++ b/app/template-html.lsp @@ -31,7 +31,7 @@ Content-Type: text/html
-

+

Log in\n", ctlr .. "logon" ) ) @@ -57,15 +57,18 @@ Content-Type: text/html \n\t\t\t\t

  • \t
      \n") + io.write ( "
        ") local cat, group local class for k,v in ipairs(mainmenu) do if v.cat ~= cat then + if not (cat == nil) and not (cat == "") then + io.write ("\t\t\t\t\t
      ") + end cat = v.cat if (cat ~= "") then -- Filter out empty categories - io.write (string.format("\t\t\t\t\t
    \n\t\t\t\t
  • \n\t\t\t\t
  • %s\n\t\t\t\t\t
      \n", cat)) --start row + io.write (string.format("\n\t\t\t\t
    • %s\n\t\t\t\t\t
        \n", cat)) --start row end group = "" end @@ -81,7 +84,8 @@ Content-Type: text/html class,ENV.SCRIPT_NAME,v.prefix, v.controller, v.action, v.group )) end end ?> -
    • +
    +
  • -- cgit v1.2.3