blob: 6551b2cf70369674021bc4161a56acc0fa7cc72c (
plain)
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
|
<!DOCTYPE html>
<html lang=en>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<div id="metadata">
<h1>Metadata</h1>
<table class="table table-striped">
<thead>
<tr>
<th>Key</th>
<th>Value</th>
</tr>
</thead>
<tbody>
{% for key,value in obj.metadata.items() %}
<tr>
<td>{{ key }}</td>
<td>
{% if value is sequence and value is not string %}
<ul>
{% for item in value %}
<li>{{ item }}
{% endfor %}
</ul>
{% else %}
{{ value }}
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div id="requirements">
<h1>Requirements</h1>
{% for req in obj.requirements %}
{% set outer_loop = loop %}
<div {% if req.covered %}class="covered"{% else %}class="alert alert-danger"{% endif %}>
<h2>{{ loop.index}} {{ req.name }}</h2>
<h4>Owner: {{ req.owner }}</h4>
{% if req.tests %}
{% if req.tests.manual is defined and req.tests.manual is not none %}
<h3>Manual tests</h3>
{% for test in req.tests.manual %}
<div {% if test.missing %}class="alert alert-danger"{% endif %}>
<h5>{{ outer_loop.index }}.{{ loop.index }}</h5>
{% include "_test_details.html" %}
</div>
{% endfor %}
{% endif %}
{% if req.tests.automated is defined and req.tests.automated is not none %}
<h3>Automated tests</h3>
{% for test in req.tests.automated %}
<div {% if test.missing %}class="alert alert-danger"{% endif %}>
<h5>{{ outer_loop.index }}.{{ loop.index }}</h5>
{% include "_test_details.html" %}
</div>
{% endfor %}
{% endif %}
{% endif %}
</div>
{% endfor %}
</div>
</div>
</body>
</html>
|