liquid_feedback_frontend
diff app/main/member/_area_list.lua @ 278:fecd4c13054a
Code/css clean up and minor enhancements
| author | bsw |
|---|---|
| date | Mon Feb 13 01:53:41 2012 +0100 (2012-02-13) |
| parents | aec9df5b4cd3 |
| children | 808269b7f41c |
line diff
1.1 --- a/app/main/member/_area_list.lua Mon Feb 13 00:16:42 2012 +0100 1.2 +++ b/app/main/member/_area_list.lua Mon Feb 13 01:53:41 2012 +0100 1.3 @@ -5,18 +5,24 @@ 1.4 :join("membership", nil, { "membership.area_id = area.id AND membership.member_id = ?", member.id }) 1.5 :add_where{ "area.unit_id = ?", unit.id } 1.6 :add_order_by("area.member_weight DESC") 1.7 - ui.link{ 1.8 - attr = { class = "heading" }, 1.9 - text = unit.name, 1.10 - module = "area", view = "list", params = { unit_id = unit.id } 1.11 - } 1.12 1.13 if areas_selector:count() > 0 then 1.14 execute.view{ 1.15 module = "area", view = "_list", 1.16 - params = { areas_selector = areas_selector }, 1.17 + params = { areas_selector = areas_selector, title = function() 1.18 + ui.link{ 1.19 + attr = { class = "heading" }, 1.20 + text = unit.name, 1.21 + module = "area", view = "list", params = { unit_id = unit.id } 1.22 + } 1.23 + end}, 1.24 } 1.25 else 1.26 + ui.link{ 1.27 + attr = { class = "heading" }, 1.28 + text = unit.name, 1.29 + module = "area", view = "list", params = { unit_id = unit.id } 1.30 + } 1.31 ui.tag{ content = _"You have voting privileges for this unit, but you are not member of any of its areas." } 1.32 slot.put(" ") 1.33 ui.link{ 1.34 @@ -25,6 +31,7 @@ 1.35 } 1.36 end 1.37 slot.put("<br />") 1.38 + slot.put("<br />") 1.39 1.40 end 1.41