liquid_feedback_frontend

view app/main/unit/_list.lua @ 535:62923420b7f8

Removed unnexessary code which caused performance issues (backported to changeset 9d463368e0d0)
author jbe
date Tue May 22 03:05:00 2012 +0200 (2012-05-22)
parents ba310961ba34
children 701a5cf6b067
line source
1 local units = Unit:get_flattened_tree{ active = true }
3 ui.container{ attr = { class = "box" }, content = function()
5 ui.list{
6 attr = { class = "unit_list" },
7 records = units,
8 columns = {
9 {
10 content = function(unit)
11 for i = 1, unit.depth - 1 do
12 slot.put("     ")
13 end
14 ui.link{ text = unit.name, module = "unit", view = "show", id = unit.id }
15 end
16 }
17 }
18 }
20 end }

Impressum / About Us