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
=== modified file 'html-report'
--- html-report 2013-01-10 05:28:17 +0000
+++ html-report 2013-05-28 14:54:44 +0000
@@ -364,10 +364,13 @@
364 data.update(spec_completion(db, opts.team, milestone_collection=milestone_collection))364 data.update(spec_completion(db, opts.team, milestone_collection=milestone_collection))
365 data.update(by_assignee(db, team=opts.team, milestone_collection=milestone_collection))365 data.update(by_assignee(db, team=opts.team, milestone_collection=milestone_collection))
366 data.update(time_stats(db, team=opts.team, milestone_collection=milestone_collection))366 data.update(time_stats(db, team=opts.team, milestone_collection=milestone_collection))
367 data.update(
368 milestone_groups=report_tools.milestone_groups(
369 db, team=opts.team))
367 if milestone_collection is not None:370 if milestone_collection is not None:
368 data.update(dict(page_type="milestones"))371 data.update(dict(page_type="milestones"))
369 elif isinstance(opts.team, report_tools.user_string):372 elif isinstance(opts.team, report_tools.user_string):
370 data.update(dict(page_type="people"))373 data.update(dict(page_type="people"), assignee=True)
371 else:374 else:
372 data.update(dict(page_type="teams"))375 data.update(dict(page_type="teams"))
373 print report_tools.fill_template(376 print report_tools.fill_template(
374377
=== modified file 'templates/burndown.html'
--- templates/burndown.html 2013-05-27 06:35:20 +0000
+++ templates/burndown.html 2013-05-28 14:54:44 +0000
@@ -177,6 +177,20 @@
177177
178</table>178</table>
179179
180% if milestone_groups:
181<h2>Milestones</h2>
182<ul class="list list-ubuntu">
183 % for group in milestone_groups:
184 % for milestone in group.milestones:
185 % if assignee:
186 <li><a href="${util.url('u/' + milestone.link)}">${milestone.name}</a></li>
187 % else:
188 <li><a href="${util.url(milestone.link)}">${milestone.name}</a></li>
189 % endif
190 % endfor
191 % endfor
192</ul>
193% endif
180<h2>Development over time</h2>194<h2>Development over time</h2>
181<table id="time_stats">195<table id="time_stats">
182 <thead>196 <thead>
183197
=== modified file 'themes/ubuntu/css/theme.css'
--- themes/ubuntu/css/theme.css 2013-05-27 06:35:20 +0000
+++ themes/ubuntu/css/theme.css 2013-05-28 14:54:44 +0000
@@ -177,6 +177,16 @@
177 line-height: 1.4;177 line-height: 1.4;
178}178}
179179
180.list-ubuntu li {
181 background-repeat : no-repeat;
182 background-position : 0 15px;
183 padding-left : 25px;
184}
185
186.list-ubuntu li {
187 background-image : url("//assets.ubuntu.com/sites/community-themes/img/tick-orange.png");
188}
189
180strong {190strong {
181 font-weight: bold191 font-weight: bold
182}192}

Subscribers

People subscribed via source and target branches

to all changes: