liquid_feedback_frontend
changeset 795:7878f3c20a86
Fixed missing unit/area info and action links
author | bsw |
---|---|
date | Fri Jun 29 03:36:59 2012 +0200 (2012-06-29) |
parents | 5fd3749e5d0a |
children | f7b21855d7d1 |
files | app/main/area/_head.lua app/main/area/_list.lua app/main/area/show.lua app/main/unit/show.lua |
line diff
1.1 --- a/app/main/area/_head.lua Fri Jun 29 00:58:51 2012 +0200 1.2 +++ b/app/main/area/_head.lua Fri Jun 29 03:36:59 2012 +0200 1.3 @@ -6,7 +6,7 @@ 1.4 area:load_delegation_info_once_for_member_id(app.session.member_id) 1.5 1.6 if not param.get("hide_unit", atom.boolean) then 1.7 - execute.view{ module = "unit", view = "_head", params = { unit = area.unit } } 1.8 + execute.view{ module = "unit", view = "_head", params = { unit = area.unit, member = member } } 1.9 end 1.10 1.11 ui.container{ attr = { class = "area_head" }, content = function()
2.1 --- a/app/main/area/_list.lua Fri Jun 29 00:58:51 2012 +0200 2.2 +++ b/app/main/area/_list.lua Fri Jun 29 03:36:59 2012 +0200 2.3 @@ -1,5 +1,6 @@ 2.4 local areas_selector = param.get("areas_selector", "table") 2.5 local hide_membership = param.get("hide_membership", atom.boolean) 2.6 +local member = param.get("member", "table") 2.7 2.8 areas_selector 2.9 :reset_fields() 2.10 @@ -32,7 +33,7 @@ 2.11 2.12 ui.container{ attr = { class = "area_list" }, content = function() 2.13 for i, area in ipairs(areas_selector:exec()) do 2.14 - execute.view { module = "area", view = "_list_entry", params = { area = area } } 2.15 + execute.view { module = "area", view = "_list_entry", params = { area = area, member = member } } 2.16 end 2.17 end } 2.18
3.1 --- a/app/main/area/show.lua Fri Jun 29 00:58:51 2012 +0200 3.2 +++ b/app/main/area/show.lua Fri Jun 29 03:36:59 2012 +0200 3.3 @@ -7,7 +7,7 @@ 3.4 util.help("area.show") 3.5 3.6 slot.select("head", function() 3.7 - execute.view{ module = "area", view = "_head", params = { area = area, show_content = true } } 3.8 + execute.view{ module = "area", view = "_head", params = { area = area, show_content = true, member = app.session.member } } 3.9 end) 3.10 3.11 ui.container{
4.1 --- a/app/main/unit/show.lua Fri Jun 29 00:58:51 2012 +0200 4.2 +++ b/app/main/unit/show.lua Fri Jun 29 03:36:59 2012 +0200 4.3 @@ -3,7 +3,7 @@ 4.4 local unit = Unit:by_id(unit_id) 4.5 4.6 slot.select("head", function() 4.7 - execute.view{ module = "unit", view = "_head", params = { unit = unit, show_content = true } } 4.8 + execute.view{ module = "unit", view = "_head", params = { unit = unit, show_content = true, member = app.session.member } } 4.9 end) 4.10 4.11 if config.single_unit_id and not app.session.member_id and config.motd_public then 4.12 @@ -54,7 +54,7 @@ 4.13 label = _"Areas", 4.14 module = "area", 4.15 view = "_list", 4.16 - params = { areas_selector = areas_selector } 4.17 + params = { areas_selector = areas_selector, member = app.session.member } 4.18 } 4.19 4.20 tabs[#tabs+1] = {