liquid_feedback_frontend

view app/main/unit/_list.lua @ 1308:7ea154c9238a

Added libbsd-dev and postgresql server-dev package to list of necessary packages to be installed for compiling/running on Debian
author jbe
date Thu Jun 23 03:30:57 2016 +0200 (2016-06-23)
parents 701a5cf6b067
children c18bee9e186e
line source
1 local for_admin = param.get("for_admin", atom.boolean)
2 local units = Unit:get_flattened_tree{ active = true }
4 ui.container{ attr = { class = "box" }, content = function()
6 ui.list{
7 attr = { class = "unit_list" },
8 records = units,
9 columns = {
10 {
11 content = function(unit)
12 for i = 1, unit.depth - 1 do
13 slot.put("     ")
14 end
15 if for_admin then
16 ui.link{ text = unit.name, module = "admin", view = "unit_edit", id = unit.id }
17 else
18 ui.link{ text = unit.name, module = "unit", view = "show", id = unit.id }
19 end
20 end
21 }
22 }
23 }
25 end }

Impressum / About Us