liquid_feedback_frontend
diff app/main/report/area.lua @ 34:a851cc1d9903
Beautified report view for closed issues
author | bsw |
---|---|
date | Wed Feb 24 12:37:28 2010 +0100 (2010-02-24) |
parents | a6caaff47205 |
children |
line diff
1.1 --- a/app/main/report/area.lua Tue Feb 23 21:10:56 2010 +0100 1.2 +++ b/app/main/report/area.lua Wed Feb 24 12:37:28 2010 +0100 1.3 @@ -117,6 +117,8 @@ 1.4 end 1.5 } 1.6 1.7 +ui.script{ script = "parents['area_" .. tostring(area.id) .. "'] = 'areas';" } 1.8 + 1.9 local next_issue = issues[1] 1.10 if next_issue then 1.11 ui.script{ script = "next_issues['area_" .. tostring(area.id) .. "'] = 'issue_" .. tostring(next_issue.id) .. "';" } 1.12 @@ -157,6 +159,8 @@ 1.13 ui.script{ script = "next_initiatives['issue_" .. tostring(issue.id) .. "'] = 'initiative_" .. tostring(next_initiative.id) .. "';" } 1.14 end 1.15 1.16 + ui.script{ script = "parents['issue_" .. tostring(issue.id) .. "'] = 'area_" .. tostring(area.id) .. "';" } 1.17 + 1.18 local next_issue = issues[i+1] 1.19 if next_issue then 1.20 ui.script{ script = "next_issues['issue_" .. tostring(issue.id) .. "'] = 'issue_" .. tostring(next_issue.id) .. "';" } 1.21 @@ -197,6 +201,8 @@ 1.22 ui.script{ script = "prev_initiatives['initiative_" .. tostring(initiative.id) .. "'] = 'initiative_" .. tostring(previous_initiative.id) .. "';" } 1.23 end 1.24 1.25 + ui.script{ script = "parents['initiative_" .. tostring(initiative.id) .. "'] = 'issue_" .. tostring(issue.id) .. "';" } 1.26 + 1.27 local next_initiative = initiatives[j+1] 1.28 if next_initiative then 1.29 ui.script{ script = "next_initiatives['initiative_" .. tostring(initiative.id) .. "'] = 'initiative_" .. tostring(next_initiative.id) .. "';" }