liquid_feedback_frontend
diff app/main/area/_head.lua @ 1602:a3a7120a67be
Show unit and area head in sidebar
| author | bsw |
|---|---|
| date | Mon Feb 01 14:32:47 2021 +0100 (2021-02-01) |
| parents | c061fea7ed10 |
| children | c2d51e2158f6 |
line diff
1.1 --- a/app/main/area/_head.lua Mon Feb 01 12:58:17 2021 +0100 1.2 +++ b/app/main/area/_head.lua Mon Feb 01 14:32:47 2021 +0100 1.3 @@ -1,5 +1,4 @@ 1.4 local area = param.get("area", "table") 1.5 -local member = param.get("member", "table") 1.6 1.7 ui.title ( function () 1.8 1.9 @@ -10,30 +9,13 @@ 1.10 ui.tag{ attr = { class = "name" }, content = area.unit.name } 1.11 end, 1.12 module = "index", view = "index", 1.13 - unit = area.unit_id 1.14 + params = { unit = area.unit_id } 1.15 } 1.16 1.17 ui.tag { attr = { class = "spacer" }, content = function() 1.18 slot.put ( " ยป " ) 1.19 end } 1.20 1.21 - ui.tag { attr = { class = "area" }, content = function() 1.22 - -- area link 1.23 - ui.link { 1.24 - content = function() 1.25 - ui.tag{ attr = { class = "name" }, content = area.name } 1.26 - end, 1.27 - module = "index", view = "index", 1.28 - params = { unit = area.unit_id, area = area.id } 1.29 - } 1.30 - 1.31 - slot.put ( " " ) 1.32 - 1.33 - execute.view { 1.34 - module = "delegation", view = "_info", params = { 1.35 - area = area, member = member, for_title = true 1.36 - } 1.37 - } 1.38 - end } 1.39 + ui.tag{ content = area.name } 1.40 1.41 end )