liquid_feedback_frontend
diff app/main/area/_head.lua @ 528:305329da1c75
Wording and css changes
| author | bsw |
|---|---|
| date | Fri May 18 21:03:10 2012 +0200 (2012-05-18) |
| parents | 18cd8595459b |
| children | 5ca9de94cb13 |
line diff
1.1 --- a/app/main/area/_head.lua Fri May 18 19:44:41 2012 +0200 1.2 +++ b/app/main/area/_head.lua Fri May 18 21:03:10 2012 +0200 1.3 @@ -24,7 +24,7 @@ 1.4 1.5 if membership then 1.6 1.7 - ui.tag{ content = _"You are member" } 1.8 + ui.tag{ content = _"You are participating in this area" } 1.9 1.10 slot.put(" ") 1.11 1.12 @@ -35,7 +35,15 @@ 1.13 module = "membership", 1.14 action = "update", 1.15 params = { area_id = area.id, delete = true }, 1.16 - routing = { default = { mode = "redirect", module = "area", view = "show", id = area.id } } 1.17 + routing = { 1.18 + default = { 1.19 + mode = "redirect", 1.20 + module = request.get_module(), 1.21 + view = request.get_view(), 1.22 + id = param.get_id_cgi(), 1.23 + params = param.get_all_cgi() 1.24 + } 1.25 + } 1.26 } 1.27 slot.put(")") 1.28 end } 1.29 @@ -44,16 +52,17 @@ 1.30 1.31 elseif app.session.member:has_voting_right_for_unit_id(area.unit_id) then 1.32 ui.link{ 1.33 - text = _"Become a member", 1.34 + text = _"Participate in this area", 1.35 module = "membership", 1.36 action = "update", 1.37 params = { area_id = area.id }, 1.38 routing = { 1.39 default = { 1.40 mode = "redirect", 1.41 - module = "area", 1.42 - view = "show", 1.43 - id = area.id 1.44 + module = request.get_module(), 1.45 + view = request.get_view(), 1.46 + id = param.get_id_cgi(), 1.47 + params = param.get_all_cgi() 1.48 } 1.49 } 1.50 }