blob: f3d57b70e90048784d06ca0fa7fd84859093af81 (
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
<!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">
<h1>{{ obj.metadata.name }}</h1>
<h3>Metadata</h3>
<table class="table table-striped">
<tbody>
{% for key,value in obj.metadata.items() %}
{% if key != 'name' %}
<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>
{% endif %}
{% endfor %}
</tbody>
</table>
{% if 'params' in obj %}
<h3>Parameters</h3>
<table class="table table-striped">
<tbody>
{% for key,value in obj.params.items() %}
{% if key != 'name' %}
<tr>
<td>{{ key }}</td>
<td>
{% if value is mapping %}
{% for subkey,subvalue in value.items() %}
<strong>{{ subkey }}</strong>: {{ subvalue }}<br/>
{% endfor %}
{% else %}
{{ value }}
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
{% endif %}
{% if 'install' in obj %}
<h3>Installation</h3>
<table class="table table-striped">
<tbody>
{% for value in obj.install.steps %}
<tr>
<td>{{ value }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<h3>Run</h3>
<table class="table table-striped">
<tbody>
{% for value in obj.run.steps %}
<tr>
<td>{{ value }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% if 'expected' in obj.run %}
<h3>Expected</h3>
<table class="table table-striped">
<tbody>
{% for value in obj.run.expected %}
<tr>
<td>{{ value }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
</body>
</html>
|