Merge lp:~mabac/launchpad-work-items-tracker/move-card-healh-check into lp:~linaro-automation/launchpad-work-items-tracker/linaro

Proposed by Mattias Backman
Status: Merged
Merged at revision: 312
Proposed branch: lp:~mabac/launchpad-work-items-tracker/move-card-healh-check
Merge into: lp:~linaro-automation/launchpad-work-items-tracker/linaro
Prerequisite: lp:~mabac/launchpad-work-items-tracker/handle-kanbantool-whitespace
Diff against target: 45 lines (+13/-11)
1 file modified
templates/roadmap_card.html (+13/-11)
To merge this branch: bzr merge lp:~mabac/launchpad-work-items-tracker/move-card-healh-check
Reviewer Review Type Date Requested Status
Guilherme Salgado (community) Approve
Christian Reis user experience Pending
Review via email: mp+85102@code.launchpad.net

Description of the change

Hi,

This branch moves the roadmap card health check to the top right as requested by Kiko.

Thanks,

Mattias

To post a comment you must log in.
Revision history for this message
Guilherme Salgado (salgado) wrote :

 review approve

On Fri, 2011-12-09 at 10:44 +0000, Mattias Backman wrote:
[...]
> === modified file 'templates/roadmap_card.html'
> --- templates/roadmap_card.html 2011-11-30 20:38:49 +0000
> +++ templates/roadmap_card.html 2011-12-09 10:43:21 +0000
> @@ -11,6 +11,18 @@
> </%def>
>
> <h1>${title()}</h1>
> +<div style="float: right">
> +<h3>Health check</h3>
> +
> +<table>${'<tr colspan="2"><td><font color="#FF0000"><b>Needs attention!</b></font></td></tr>' if not card.is_healthy else ''}
> + % for result in health_checks:
> + <tr ${'bgcolor="#FFAAAA"' if result['result'] == 'Not OK' else 'bgcolor="#FFFFFF"'}>
> + <td>${result['name']}</td>
> + <td>${result['result']}</td>
> +</tr>
> +% endfor

The indentation of the two lines above is off by 2 levels and 1 level
respectively. Care to fix it? :)

> +</table>
> +</div>

review: Approve
312. By Mattias Backman

Fix indentation in card html template.

Revision history for this message
Mattias Backman (mabac) wrote :

> review approve
>
> On Fri, 2011-12-09 at 10:44 +0000, Mattias Backman wrote:
> [...]
> > === modified file 'templates/roadmap_card.html'
> > --- templates/roadmap_card.html 2011-11-30 20:38:49 +0000
> > +++ templates/roadmap_card.html 2011-12-09 10:43:21 +0000
> > @@ -11,6 +11,18 @@
> > </%def>
> >
> > <h1>${title()}</h1>
> > +<div style="float: right">
> > +<h3>Health check</h3>
> > +
> > +<table>${'<tr colspan="2"><td><font color="#FF0000"><b>Needs
> attention!</b></font></td></tr>' if not card.is_healthy else ''}
> > + % for result in health_checks:
> > + <tr ${'bgcolor="#FFAAAA"' if result['result'] == 'Not OK' else
> 'bgcolor="#FFFFFF"'}>
> > + <td>${result['name']}</td>
> > + <td>${result['result']}</td>
> > +</tr>
> > +% endfor
>
> The indentation of the two lines above is off by 2 levels and 1 level
> respectively. Care to fix it? :)

Absolutely, thanks for catching that too!

>
> > +</table>
> > +</div>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'templates/roadmap_card.html'
2--- templates/roadmap_card.html 2011-11-30 20:38:49 +0000
3+++ templates/roadmap_card.html 2011-12-13 09:59:26 +0000
4@@ -11,6 +11,18 @@
5 </%def>
6
7 <h1>${title()}</h1>
8+<div style="float: right">
9+<h3>Health check</h3>
10+
11+<table>${'<tr colspan="2"><td><font color="#FF0000"><b>Needs attention!</b></font></td></tr>' if not card.is_healthy else ''}
12+% for result in health_checks:
13+ <tr ${'bgcolor="#FFAAAA"' if result['result'] == 'Not OK' else 'bgcolor="#FFFFFF"'}>
14+ <td>${result['name']}</td>
15+ <td>${result['result']}</td>
16+ </tr>
17+% endfor
18+</table>
19+</div>
20 <h2>${card.status} in <a href="roadmap-${lane}.html">${lane}</a></h2>
21 <p>
22 <ul>
23@@ -21,7 +33,7 @@
24 <li>Team: ${card.team}
25 </ul>
26
27-<div style="text-align: center">Overall blueprint completion</div>
28+<div style="clear:both; text-align: center">Overall blueprint completion</div>
29 ${util.progress_bar(blueprint_status_count) if card_has_blueprints else '<center><i>Progress graph pending linked blueprints.</i></center>'}
30
31 <h3>Description</h3> ${card.description if card.description is not None else '<i>No description could be found.</i>'}
32@@ -54,13 +66,3 @@
33 </table>
34 % endif
35
36-<h3>Health check</h3>
37-
38-<table>${'<tr colspan="2"><td><font color="#FF0000"><b>Needs attention!</b></font></td></tr>' if not card.is_healthy else ''}
39- % for result in health_checks:
40- <tr ${'bgcolor="#FFAAAA"' if result['result'] == 'Not OK' else 'bgcolor="#FFFFFF"'}>
41- <td>${result['name']}</td>
42- <td>${result['result']}</td>
43-</tr>
44-% endfor
45-</table>

Subscribers

People subscribed via source and target branches