liquid_feedback_frontend
diff app/main/delegation/_show_box.lua @ 264:1b8d51e21614
More unit support added
| author | bsw | 
|---|---|
| date | Tue Feb 07 18:32:18 2012 +0100 (2012-02-07) | 
| parents | cb2380e08bb5 | 
| children | 7196685f9dd7 | 
   line diff
1.1 --- a/app/main/delegation/_show_box.lua Tue Feb 07 18:13:00 2012 +0100 1.2 +++ b/app/main/delegation/_show_box.lua Tue Feb 07 18:32:18 2012 +0100 1.3 @@ -3,10 +3,10 @@ 1.4 local text 1.5 if scope == "unit" and delegation and delegation.unit_id then 1.6 image = { static = "icons/16/table_go.png" } 1.7 - text = _"Change unit delegation" 1.8 + text = config.single_unit_id and _"Change global delegation" or _"Change unit delegation" 1.9 elseif scope == "unit" and not (delegation and delegation.unit_id) then 1.10 image = { static = "icons/16/table_go.png" } 1.11 - text = _"Set unit delegation" 1.12 + text = config.single_unit_id and _"Set global delegation" or _"Set unit delegation" 1.13 elseif scope == "area" and delegation and delegation.area_id then 1.14 image = { static = "icons/16/table_go.png" } 1.15 text = _"Change area delegation" 1.16 @@ -136,7 +136,11 @@ 1.17 elseif delegation.area_id then 1.18 slot.put( _("Area delegated to '#{name}'", { name = member.delegation_name }) ) 1.19 else 1.20 - slot.put( _("Unit delegated to '#{name}'", { name = member.delegation_name }) ) 1.21 + if config.single_unit_id then 1.22 + slot.put( _("Global delegation set to '#{name}'", { name = member.delegation_name }) ) 1.23 + else 1.24 + slot.put( _("Unit delegated to '#{name}'", { name = member.delegation_name }) ) 1.25 + end 1.26 end 1.27 1.28 else 1.29 @@ -200,7 +204,7 @@ 1.30 attr = { class = "delegation_scope" .. (overridden and " delegation_scope_overridden" or "") }, 1.31 content = function() 1.32 if record.scope_in == "unit" then 1.33 - slot.put(_"Unit delegation") 1.34 + slot.put(config.single_object_mode and _"Global delegation" or _"Unit delegation") 1.35 elseif record.scope_in == "area" then 1.36 slot.put(_"Area delegation") 1.37 elseif record.scope_in == "issue" then