liquid_feedback_frontend
diff app/main/area/show.lua @ 265:d37dce888225
More unit support
author | bsw |
---|---|
date | Tue Feb 07 18:40:08 2012 +0100 (2012-02-07) |
parents | 7ef1e03e4057 |
children | d13b27a37ad5 |
line diff
1.1 --- a/app/main/area/show.lua Tue Feb 07 18:32:18 2012 +0100 1.2 +++ b/app/main/area/show.lua Tue Feb 07 18:40:08 2012 +0100 1.3 @@ -13,8 +13,20 @@ 1.4 end 1.5 1.6 1.7 -slot.put_into("title", area.name_with_unit_name) 1.8 +slot.select("title", function() 1.9 + if not config.single_unit_id then 1.10 + ui.link{ 1.11 + content = area.unit.name, 1.12 + module = "area", 1.13 + view = "list", 1.14 + params = { unit_id = area.unit_id } 1.15 + } 1.16 + slot.put(" · ") 1.17 + end 1.18 1.19 + ui.tag{ content = area.name } 1.20 + 1.21 +end) 1.22 1.23 ui.container{ 1.24 attr = { class = "vertical"},