# HG changeset patch # User bsw # Date 1328636408 -3600 # Node ID d37dce88822581df7a5e8e87c86d4f5050583a18 # Parent 1b8d51e2161461ea7d1fdd9f9898e0da55be122e More unit support diff -r 1b8d51e21614 -r d37dce888225 app/main/area/show.lua --- a/app/main/area/show.lua Tue Feb 07 18:32:18 2012 +0100 +++ b/app/main/area/show.lua Tue Feb 07 18:40:08 2012 +0100 @@ -13,8 +13,20 @@ end -slot.put_into("title", area.name_with_unit_name) +slot.select("title", function() + if not config.single_unit_id then + ui.link{ + content = area.unit.name, + module = "area", + view = "list", + params = { unit_id = area.unit_id } + } + slot.put(" · ") + end + ui.tag{ content = area.name } + +end) ui.container{ attr = { class = "vertical"}, diff -r 1b8d51e21614 -r d37dce888225 app/main/issue/_show_head.lua --- a/app/main/issue/_show_head.lua Tue Feb 07 18:32:18 2012 +0100 +++ b/app/main/issue/_show_head.lua Tue Feb 07 18:40:08 2012 +0100 @@ -16,6 +16,15 @@ end) slot.select("title", function() + if not config.single_unit_id then + ui.link{ + content = issue.area.unit.name, + module = "area", + view = "list", + params = { unit_id = issue.area.unit_id } + } + slot.put(" · ") + end ui.link{ content = issue.area.name, module = "area", diff -r 1b8d51e21614 -r d37dce888225 app/main/timeline/_list.lua --- a/app/main/timeline/_list.lua Tue Feb 07 18:32:18 2012 +0100 +++ b/app/main/timeline/_list.lua Tue Feb 07 18:40:08 2012 +0100 @@ -75,7 +75,7 @@ ui.tag{ tag = "span", attr = { style = "font-size: 75%; font-weight: bold; background-color: #ccc; display: block; margin-bottom: 1ex;"}, - content = issue.area.name .. ", " .. _("Issue ##{id}", { id = issue.id }) + content = issue.area.name_with_unit_name .. ", " .. _("Issue ##{id}", { id = issue.id }) } else ui.tag{