liquid_feedback_frontend

diff env/ui/box_row.lua @ 215:1dab81353eb1

More enhancements for second generation frontend
author bsw
date Sat Mar 05 15:34:17 2011 +0100 (2011-03-05)
parents 4993b71b383f
children
line diff
     1.1 --- a/env/ui/box_row.lua	Thu Mar 03 23:47:35 2011 +0100
     1.2 +++ b/env/ui/box_row.lua	Sat Mar 05 15:34:17 2011 +0100
     1.3 @@ -2,24 +2,11 @@
     1.4    app.ui_box_col = 1
     1.5    local class = "row"
     1.6    if args.class then class = class .. " " .. args.class end
     1.7 -  if app.ui_box_row == 1 then class = class .. " first" end
     1.8 -  if app.ui_box_row == app.ui_box_row_count then class = class .. " last" end
     1.9 -  if args.toggle_content then class = class .. " toggled" end
    1.10    ui.container{ attr = { class = class }, content = function()
    1.11 -    if args.toggle_content then
    1.12 -      ui.container{ attr = { class = "col toggle"}, content = function()
    1.13 -        if type(args.toggle_content) == "function" then
    1.14 -          args.toggle_content()
    1.15 -        else
    1.16 -          slot.put(encode.html(args.toggle_content))
    1.17 -        end
    1.18 -      end }
    1.19 -    end
    1.20      if type(args.content) == "function" then
    1.21        args.content()
    1.22      else
    1.23        slot.put(encode.html(args.content))
    1.24      end
    1.25    end }
    1.26 -  app.ui_box_row = app.ui_box_row + 1
    1.27  end

Impressum / About Us