liquid_feedback_frontend
annotate app/main/area/list.lua @ 243:ec86db506312
Removed autoreject support (which was removed from core-2)
| author | bsw | 
|---|---|
| date | Fri Dec 30 03:04:17 2011 +0100 (2011-12-30) | 
| parents | 6725c13b6ce0 | 
| children | 8e284d4319be | 
| rev | line source | 
|---|---|
| bsw@241 | 1 -- TODO support multiple units | 
| bsw@241 | 2 local unit_id = param.get("units", atom.integer) | 
| bsw@241 | 3 local areas_selector = Area:build_selector{ active = true, unit_id = unit_id } | 
| bsw@197 | 4 | 
| bsw@197 | 5 | 
| bsw@51 | 6 if app.session.member_id then | 
| bsw@51 | 7 slot.put_into("title", _'Area list') | 
| bsw@51 | 8 else | 
| bsw@51 | 9 slot.put_into("title", encode.html(config.app_title)) | 
| bsw@51 | 10 end | 
| bsw@51 | 11 | 
| bsw@197 | 12 | 
| bsw@69 | 13 if not app.session.member_id and config.motd_public then | 
| bsw@69 | 14 local help_text = config.motd_public | 
| bsw@69 | 15 ui.container{ | 
| bsw@69 | 16 attr = { class = "wiki motd" }, | 
| bsw@69 | 17 content = function() | 
| bsw@69 | 18 slot.put(format.wiki_text(help_text)) | 
| bsw@69 | 19 end | 
| bsw@69 | 20 } | 
| bsw@51 | 21 end | 
| bsw/jbe@0 | 22 | 
| bsw/jbe@4 | 23 util.help("area.list", _"Area list") | 
| bsw/jbe@4 | 24 | 
| bsw/jbe@0 | 25 | 
| bsw/jbe@0 | 26 execute.view{ | 
| bsw/jbe@0 | 27 module = "area", | 
| bsw/jbe@0 | 28 view = "_list", | 
| bsw/jbe@0 | 29 params = { areas_selector = areas_selector } | 
| bsw/jbe@0 | 30 } |