liquid_feedback_frontend
diff app/main/index/_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 | d47d2b0cd7c2 |
children | 22398d337507 |
line diff
1.1 --- a/app/main/index/_head.lua Mon Feb 01 12:58:17 2021 +0100 1.2 +++ b/app/main/index/_head.lua Mon Feb 01 14:32:47 2021 +0100 1.3 @@ -1,5 +1,13 @@ 1.4 local unit_id = config.single_unit_id or request.get_param{ name = "unit" } 1.5 local area_id = config.single_area_id or request.get_param{ name = "area" } 1.6 + 1.7 +local initiative = param.get("initiative", "table") 1.8 +local issue = param.get("issue", "table") 1.9 +if issue then 1.10 + area_id = issue.area_id 1.11 + unit_id = issue.area.unit_id 1.12 +end 1.13 + 1.14 if unit_id == "all" then 1.15 unit_id = nil 1.16 area_id = nil