liquid_feedback_frontend
changeset 265:d37dce888225
More unit support
author | bsw |
---|---|
date | Tue Feb 07 18:40:08 2012 +0100 (2012-02-07) |
parents | 1b8d51e21614 |
children | aab7b0c5543f |
files | app/main/area/show.lua app/main/issue/_show_head.lua app/main/timeline/_list.lua |
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"},
2.1 --- a/app/main/issue/_show_head.lua Tue Feb 07 18:32:18 2012 +0100 2.2 +++ b/app/main/issue/_show_head.lua Tue Feb 07 18:40:08 2012 +0100 2.3 @@ -16,6 +16,15 @@ 2.4 end) 2.5 2.6 slot.select("title", function() 2.7 + if not config.single_unit_id then 2.8 + ui.link{ 2.9 + content = issue.area.unit.name, 2.10 + module = "area", 2.11 + view = "list", 2.12 + params = { unit_id = issue.area.unit_id } 2.13 + } 2.14 + slot.put(" · ") 2.15 + end 2.16 ui.link{ 2.17 content = issue.area.name, 2.18 module = "area",
3.1 --- a/app/main/timeline/_list.lua Tue Feb 07 18:32:18 2012 +0100 3.2 +++ b/app/main/timeline/_list.lua Tue Feb 07 18:40:08 2012 +0100 3.3 @@ -75,7 +75,7 @@ 3.4 ui.tag{ 3.5 tag = "span", 3.6 attr = { style = "font-size: 75%; font-weight: bold; background-color: #ccc; display: block; margin-bottom: 1ex;"}, 3.7 - content = issue.area.name .. ", " .. _("Issue ##{id}", { id = issue.id }) 3.8 + content = issue.area.name_with_unit_name .. ", " .. _("Issue ##{id}", { id = issue.id }) 3.9 } 3.10 else 3.11 ui.tag{