liquid_feedback_frontend
annotate app/main/area/list.lua @ 234:7db22d3e9eea
Fixed bug that prevented voting results to be sorted by delegations
| author | Ingo Bormuth <mail@ibormuth.de> | 
|---|---|
| date | Sun Nov 20 19:47:07 2011 +0100 (2011-11-20) | 
| parents | c0835d707465 | 
| children | 6725c13b6ce0 | 
| rev | line source | 
|---|---|
| bsw@197 | 1 local areas_selector = Area:build_selector{ active = true } | 
| bsw@197 | 2 | 
| bsw@197 | 3 | 
| bsw@51 | 4 if app.session.member_id then | 
| bsw@51 | 5 slot.put_into("title", _'Area list') | 
| bsw@51 | 6 else | 
| bsw@51 | 7 slot.put_into("title", encode.html(config.app_title)) | 
| bsw@51 | 8 end | 
| bsw@51 | 9 | 
| bsw@197 | 10 | 
| bsw@69 | 11 if not app.session.member_id and config.motd_public then | 
| bsw@69 | 12 local help_text = config.motd_public | 
| bsw@69 | 13 ui.container{ | 
| bsw@69 | 14 attr = { class = "wiki motd" }, | 
| bsw@69 | 15 content = function() | 
| bsw@69 | 16 slot.put(format.wiki_text(help_text)) | 
| bsw@69 | 17 end | 
| bsw@69 | 18 } | 
| bsw@51 | 19 end | 
| bsw/jbe@0 | 20 | 
| bsw/jbe@4 | 21 util.help("area.list", _"Area list") | 
| bsw/jbe@4 | 22 | 
| bsw/jbe@0 | 23 | 
| bsw/jbe@0 | 24 execute.view{ | 
| bsw/jbe@0 | 25 module = "area", | 
| bsw/jbe@0 | 26 view = "_list", | 
| bsw/jbe@0 | 27 params = { areas_selector = areas_selector } | 
| bsw/jbe@0 | 28 } |