liquid_feedback_frontend
diff app/main/delegation/_info.lua @ 774:a3eb6ca34484
Completed membership/privilege tab in member page
author | bsw |
---|---|
date | Thu Jun 28 23:57:02 2012 +0200 (2012-06-28) |
parents | c1dc3b14a4f3 |
children | 9d4398195faf |
line diff
1.1 --- a/app/main/delegation/_info.lua Thu Jun 28 23:44:09 2012 +0200 1.2 +++ b/app/main/delegation/_info.lua Thu Jun 28 23:57:02 2012 +0200 1.3 @@ -2,6 +2,8 @@ 1.4 return 1.5 end 1.6 1.7 +local member = param.get("member", "table") or app.session.member 1.8 + 1.9 local unit = param.get("unit", "table") 1.10 local area = param.get("area", "table") 1.11 local issue = param.get("issue", "table") 1.12 @@ -19,15 +21,13 @@ 1.13 end 1.14 1.15 if area then 1.16 - area:load_delegation_info_once_for_member_id(app.session.member_id) 1.17 + area:load_delegation_info_once_for_member_id(member.id) 1.18 info = area.delegation_info 1.19 delegation_text = _"Delegate area" 1.20 end 1.21 1.22 if issue then 1.23 - if app.session.member_id then 1.24 - info = issue.member_info 1.25 - end 1.26 + info = issue.member_info 1.27 delegation_text = _"Delegate issue" 1.28 end 1.29 1.30 @@ -53,7 +53,7 @@ 1.31 end 1.32 1.33 execute.view{ module = "member_image", view = "_show", params = { 1.34 - member = app.session.member, class = class, popup_text = app.session.member.name, 1.35 + member = member, class = class, popup_text = member.name, 1.36 image_type = "avatar", show_dummy = true, 1.37 } } 1.38 1.39 @@ -139,7 +139,7 @@ 1.40 } 1.41 1.42 execute.view{ module = "member_image", view = "_show", params = { 1.43 - member = app.session.member, class = "micro_avatar", popup_text = app.session.member.name, 1.44 + member = member, class = "micro_avatar", popup_text = member.name, 1.45 image_type = "avatar", show_dummy = true, 1.46 } } 1.47