liquid_feedback_frontend
diff app/main/unit/list.lua @ 276:f460555c9896
Code cleanup
| author | bsw |
|---|---|
| date | Sun Feb 12 20:03:26 2012 +0100 (2012-02-12) |
| parents | 7196685f9dd7 |
| children | 54a7daa4d35c |
line diff
1.1 --- a/app/main/unit/list.lua Sun Feb 12 13:42:08 2012 +0100 1.2 +++ b/app/main/unit/list.lua Sun Feb 12 20:03:26 2012 +0100 1.3 @@ -1,26 +1,5 @@ 1.4 -local units = Unit:get_flattened_tree{ active = true } 1.5 - 1.6 slot.put_into("title", _"Unit list") 1.7 1.8 -if not app.session.member_id and config.motd_public then 1.9 - local help_text = config.motd_public 1.10 - ui.container{ 1.11 - attr = { class = "wiki motd" }, 1.12 - content = function() 1.13 - slot.put(format.wiki_text(help_text)) 1.14 - end 1.15 - } 1.16 -end 1.17 - 1.18 util.help("unit.list", _"Unit list") 1.19 1.20 -ui.list{ 1.21 - records = units, 1.22 - columns = { 1.23 - { 1.24 - content = function(unit) 1.25 - ui.link{ text = unit.name, module = "area", view = "list", params = { unit_id = unit.id } } 1.26 - end 1.27 - } 1.28 - } 1.29 -} 1.30 \ No newline at end of file 1.31 +execute.view{ module = "unit", view = "_list" } 1.32 \ No newline at end of file