liquid_feedback_frontend

changeset 247:8e284d4319be

Show current unit in area list
author bsw
date Fri Dec 30 03:11:57 2011 +0100 (2011-12-30)
parents 6efacc81ce81
children e3613831cd1e
files app/main/area/list.lua
line diff
     1.1 --- a/app/main/area/list.lua	Fri Dec 30 03:10:11 2011 +0100
     1.2 +++ b/app/main/area/list.lua	Fri Dec 30 03:11:57 2011 +0100
     1.3 @@ -2,9 +2,11 @@
     1.4  local unit_id = param.get("units", atom.integer)
     1.5  local areas_selector = Area:build_selector{ active = true, unit_id = unit_id }
     1.6  
     1.7 +local unit = Unit:by_id(unit_id)
     1.8 +
     1.9  
    1.10  if app.session.member_id then
    1.11 -  slot.put_into("title", _'Area list')
    1.12 +  slot.put_into("title", _("Area list of unit '#{unit_name}'", { unit_name = unit.name }))
    1.13  else
    1.14    slot.put_into("title", encode.html(config.app_title))
    1.15  end

Impressum / About Us