liquid_feedback_frontend

diff app/main/unit/_list.lua @ 462:ba310961ba34

Make public_access mode working
author bsw
date Tue Mar 13 11:59:58 2012 +0100 (2012-03-13)
parents 22e4e26717ac
children 701a5cf6b067
line diff
     1.1 --- a/app/main/unit/_list.lua	Mon Mar 12 23:39:31 2012 +0100
     1.2 +++ b/app/main/unit/_list.lua	Tue Mar 13 11:59:58 2012 +0100
     1.3 @@ -1,15 +1,20 @@
     1.4  local units = Unit:get_flattened_tree{ active = true }
     1.5  
     1.6 -ui.list{
     1.7 -  records = units,
     1.8 -  columns = {
     1.9 -    {
    1.10 -      content = function(unit)
    1.11 -        for i = 1, unit.depth - 1 do
    1.12 -          slot.put("     ")
    1.13 -        end
    1.14 -        ui.link{ text = unit.name, module = "unit", view = "show", id = unit.id }
    1.15 -      end 
    1.16 +ui.container{ attr = { class = "box" }, content = function()
    1.17 +
    1.18 +  ui.list{
    1.19 +    attr = { class = "unit_list" },
    1.20 +    records = units,
    1.21 +    columns = {
    1.22 +      {
    1.23 +        content = function(unit)
    1.24 +          for i = 1, unit.depth - 1 do
    1.25 +            slot.put("     ")
    1.26 +          end
    1.27 +          ui.link{ text = unit.name, module = "unit", view = "show", id = unit.id }
    1.28 +        end 
    1.29 +      }
    1.30      }
    1.31    }
    1.32 -}
    1.33 \ No newline at end of file
    1.34 +  
    1.35 +end }
    1.36 \ No newline at end of file

Impressum / About Us