liquid_feedback_frontend

diff app/main/area/list.lua @ 264:1b8d51e21614

More unit support added
author bsw
date Tue Feb 07 18:32:18 2012 +0100 (2012-02-07)
parents 7ef1e03e4057
children 7196685f9dd7
line diff
     1.1 --- a/app/main/area/list.lua	Tue Feb 07 18:13:00 2012 +0100
     1.2 +++ b/app/main/area/list.lua	Tue Feb 07 18:32:18 2012 +0100
     1.3 @@ -1,11 +1,11 @@
     1.4 -local unit_id = param.get("unit_id", atom.integer)
     1.5 +local unit_id = config.single_unit_id or param.get("unit_id", atom.integer)
     1.6  
     1.7  local areas_selector = Area:build_selector{ active = true, unit_id = unit_id }
     1.8  
     1.9  local unit = Unit:by_id(unit_id)
    1.10  
    1.11  
    1.12 -if config.feature_units_enabled then
    1.13 +if not config.single_unit_id then
    1.14    slot.put_into("title", unit.name)
    1.15  else
    1.16    slot.put_into("title", encode.html(config.app_title))

Impressum / About Us