~mabac/launchpad-work-items-tracker/add-progress-bars-to-lane

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<%inherit file="body.html"/>
<%namespace name="util" file="util.html"/>
<%namespace name="terminology" file="terminology.html"/>

<%!
import report_tools
%>

<%def name="title()">
${card_title}
</%def>

<h1>${title()}</h1>
<h2>${card.status} in <a href="roadmap-${lane}.html">${lane}</a></h2>
<p>
<ul>
    <li>Description: ${card.description}
    <li>Acceptance criteria: ${card.acceptance_criteria}
    <li>Sponsor: ${card.sponsor}
    <li>Contact: ${card.contact}
    <li>Priority: ${card.priority}
    <li>Size: ${card.size}
    <li>Team: ${card.team}
</ul>

<p>
% for status in blueprints.keys():
% if blueprints[status] == []:
<p><i>There are no ${status} blueprints linked to this card.</i>
% else:
<h3>${status}</h3>
<table>
<thead>
    <tr><th>Title</th>
    <th>Assignee</th>
    <th>Priority</th>
    <th>Status</th>
    <th>Expected milestone</th>
    <th>Health check</th>
    </tr>
</thead>
% for bp in blueprints[status]:
    <tr><td><a href="${bp.url}">${bp.name}</a></td>
    <td>${bp.assignee_name}</td>
    <td>${bp.priority}</td>
    <td>${bp.implementation}</td>
    <td>${bp.milestone_name}</td>
    <td>xxx</td>
    </tr>
% endfor
</table>
% endif
% endfor

<h3>Health check</h3>
<table>
    <tr><td>Has Description</td>
    <td>
% if description == "":
        No
% else:
        Yes
% endif
    </td></tr>
    <tr><td>Has Acceptance Criteria</td>
    <td>
% if acceptance_criteria == "":
        No
% else:
        Yes
% endif
    </td></tr>
    <tr><td>Has Blueprints</td>
    <td>
% if blueprints == []:
        No
% else:
        Yes
% endif
    </td></tr>
    <tr><td>Is Ready</td>
    <td>
        TODO
    </td></tr>
</table>