Merge lp:~cjohnston/launchpad-work-items-tracker/add-milestones-to-pages into lp:launchpad-work-items-tracker

Proposed by Chris Johnston
Status: Merged
Merged at revision: 312
Proposed branch: lp:~cjohnston/launchpad-work-items-tracker/add-milestones-to-pages
Merge into: lp:launchpad-work-items-tracker
Diff against target: 64 lines (+28/-1)
3 files modified
html-report (+4/-1)
templates/burndown.html (+14/-0)
themes/ubuntu/css/theme.css (+10/-0)
To merge this branch: bzr merge lp:~cjohnston/launchpad-work-items-tracker/add-milestones-to-pages
Reviewer Review Type Date Requested Status
Developers of work-items-tracker Pending
Review via email: mp+166068@code.launchpad.net

This proposal supersedes a proposal from 2013-05-27.

Description of the change

Currently there are no links to team and assignee milestone pages. This makes it quite hard to do monthly planning. This adds links to team pages for team milestones, assignee pages to assignee milestones, and milestone pages to the other milestones.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'html-report'
2--- html-report 2013-01-10 05:28:17 +0000
3+++ html-report 2013-05-28 14:54:44 +0000
4@@ -364,10 +364,13 @@
5 data.update(spec_completion(db, opts.team, milestone_collection=milestone_collection))
6 data.update(by_assignee(db, team=opts.team, milestone_collection=milestone_collection))
7 data.update(time_stats(db, team=opts.team, milestone_collection=milestone_collection))
8+ data.update(
9+ milestone_groups=report_tools.milestone_groups(
10+ db, team=opts.team))
11 if milestone_collection is not None:
12 data.update(dict(page_type="milestones"))
13 elif isinstance(opts.team, report_tools.user_string):
14- data.update(dict(page_type="people"))
15+ data.update(dict(page_type="people"), assignee=True)
16 else:
17 data.update(dict(page_type="teams"))
18 print report_tools.fill_template(
19
20=== modified file 'templates/burndown.html'
21--- templates/burndown.html 2013-05-27 06:35:20 +0000
22+++ templates/burndown.html 2013-05-28 14:54:44 +0000
23@@ -177,6 +177,20 @@
24
25 </table>
26
27+% if milestone_groups:
28+<h2>Milestones</h2>
29+<ul class="list list-ubuntu">
30+ % for group in milestone_groups:
31+ % for milestone in group.milestones:
32+ % if assignee:
33+ <li><a href="${util.url('u/' + milestone.link)}">${milestone.name}</a></li>
34+ % else:
35+ <li><a href="${util.url(milestone.link)}">${milestone.name}</a></li>
36+ % endif
37+ % endfor
38+ % endfor
39+</ul>
40+% endif
41 <h2>Development over time</h2>
42 <table id="time_stats">
43 <thead>
44
45=== modified file 'themes/ubuntu/css/theme.css'
46--- themes/ubuntu/css/theme.css 2013-05-27 06:35:20 +0000
47+++ themes/ubuntu/css/theme.css 2013-05-28 14:54:44 +0000
48@@ -177,6 +177,16 @@
49 line-height: 1.4;
50 }
51
52+.list-ubuntu li {
53+ background-repeat : no-repeat;
54+ background-position : 0 15px;
55+ padding-left : 25px;
56+}
57+
58+.list-ubuntu li {
59+ background-image : url("//assets.ubuntu.com/sites/community-themes/img/tick-orange.png");
60+}
61+
62 strong {
63 font-weight: bold
64 }

Subscribers

People subscribed via source and target branches

to all changes: