# HG changeset patch # User bsw # Date 1325211117 -3600 # Node ID 8e284d4319be044ae8749cedb02991694ed73f20 # Parent 6efacc81ce81a7b5f2f5566b2ac8527af38bef9c Show current unit in area list diff -r 6efacc81ce81 -r 8e284d4319be app/main/area/list.lua --- a/app/main/area/list.lua Fri Dec 30 03:10:11 2011 +0100 +++ b/app/main/area/list.lua Fri Dec 30 03:11:57 2011 +0100 @@ -2,9 +2,11 @@ local unit_id = param.get("units", atom.integer) local areas_selector = Area:build_selector{ active = true, unit_id = unit_id } +local unit = Unit:by_id(unit_id) + if app.session.member_id then - slot.put_into("title", _'Area list') + slot.put_into("title", _("Area list of unit '#{unit_name}'", { unit_name = unit.name })) else slot.put_into("title", encode.html(config.app_title)) end