-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtemplate.html.jinja
34 lines (34 loc) · 1.7 KB
/
template.html.jinja
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<title>QubesOS components status</title>
<style>
body { font-family: sans-serif; }
td, th { border: solid 2px #dcdcdc; padding: 4px; }
table { border-collapse: collapse; }
</style>
</head>
<body>
{%- for dist, components in qubes_status.items() -%}
<h1 id="{{dist}}">{{dist}}</h1>
<table>
<thead>
<tr class="header">
<th>Component</th>
<th>Status (R4.1)</th>
<th>Status (main)</th>
</tr>
</thead>
<tbody>
{%- for key, val in components.items() %}
<tr>
<td>{{key}}</td>
<td>{%if '4.1' in val%}{%if 'build' in val['4.1'].keys()%}<a href="{{val['4.1']['build']['url']}}"><img src="{{val['4.1']['build']['badge']}}" alt="{{val['4.1']['build']['text']}}"/></a>{%endif%} {%if 'install' in val['4.1']%}<a href="{{val['4.1']['install']['url']}}"><img src="{{val['4.1']['install']['badge']}}" alt="{{val['4.1']['install']['text']}}" /></a>{%endif%} {%if 'repro' in val['4.1']%}<a href="{{val['4.1']['repro']['url']}}"><img src="{{val['4.1']['repro']['badge']}}" alt="{{val['4.1']['repro']['text']}}" /></a>{%endif%}{%endif%}</td>
<td>{%if '4.2' in val%}{%if 'build' in val['4.2'].keys()%}<a href="{{val['4.2']['build']['url']}}"><img src="{{val['4.2']['build']['badge']}}" alt="{{val['4.2']['build']['text']}}"/></a>{%endif%} {%if 'install' in val['4.2']%}<a href="{{val['4.2']['install']['url']}}"><img src="{{val['4.2']['install']['badge']}}" alt="{{val['4.2']['install']['text']}}" /></a>{%endif%} {%if 'repro' in val['4.2']%}<a href="{{val['4.2']['repro']['url']}}"><img src="{{val['4.2']['repro']['badge']}}" alt="{{val['4.2']['repro']['text']}}" /></a>{%endif%}{%endif%}</td>
</tr>
{%- endfor %}
</tbody>
</table>
{%- endfor %}
</body>
</html>