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
=== modified file 'templates/roadmap_card.html'
--- templates/roadmap_card.html 2011-11-30 20:38:49 +0000
+++ templates/roadmap_card.html 2011-12-13 09:59:26 +0000
@@ -11,6 +11,18 @@
11</%def>11</%def>
1212
13<h1>${title()}</h1>13<h1>${title()}</h1>
14<div style="float: right">
15<h3>Health check</h3>
16
17<table>${'<tr colspan="2"><td><font color="#FF0000"><b>Needs attention!</b></font></td></tr>' if not card.is_healthy else ''}
18% for result in health_checks:
19 <tr ${'bgcolor="#FFAAAA"' if result['result'] == 'Not OK' else 'bgcolor="#FFFFFF"'}>
20 <td>${result['name']}</td>
21 <td>${result['result']}</td>
22 </tr>
23% endfor
24</table>
25</div>
14<h2>${card.status} in <a href="roadmap-${lane}.html">${lane}</a></h2>26<h2>${card.status} in <a href="roadmap-${lane}.html">${lane}</a></h2>
15<p>27<p>
16<ul>28<ul>
@@ -21,7 +33,7 @@
21 <li>Team: ${card.team}33 <li>Team: ${card.team}
22</ul>34</ul>
2335
24<div style="text-align: center">Overall blueprint completion</div>36<div style="clear:both; text-align: center">Overall blueprint completion</div>
25${util.progress_bar(blueprint_status_count) if card_has_blueprints else '<center><i>Progress graph pending linked blueprints.</i></center>'}37${util.progress_bar(blueprint_status_count) if card_has_blueprints else '<center><i>Progress graph pending linked blueprints.</i></center>'}
2638
27<h3>Description</h3> ${card.description if card.description is not None else '<i>No description could be found.</i>'}39<h3>Description</h3> ${card.description if card.description is not None else '<i>No description could be found.</i>'}
@@ -54,13 +66,3 @@
54</table>66</table>
55% endif67% endif
5668
57<h3>Health check</h3>
58
59<table>${'<tr colspan="2"><td><font color="#FF0000"><b>Needs attention!</b></font></td></tr>' if not card.is_healthy else ''}
60 % for result in health_checks:
61 <tr ${'bgcolor="#FFAAAA"' if result['result'] == 'Not OK' else 'bgcolor="#FFFFFF"'}>
62 <td>${result['name']}</td>
63 <td>${result['result']}</td>
64</tr>
65% endfor
66</table>

Subscribers

People subscribed via source and target branches