liquid_feedback_frontend
annotate app/main/area/list.lua @ 197:c0835d707465
Area module refactored
author | bsw |
---|---|
date | Mon Nov 08 15:30:59 2010 +0100 (2010-11-08) |
parents | c553898f64cb |
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 } |