liquid_feedback_frontend
annotate app/main/area/list.lua @ 532:69c241bb92f8
Added tag beta34 for changeset 55939cbde1a5
| author | bsw |
|---|---|
| date | Mon May 21 21:23:54 2012 +0200 (2012-05-21) |
| 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 } |