-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathoutput.html.jinja
More file actions
99 lines (90 loc) · 2.69 KB
/
output.html.jinja
File metadata and controls
99 lines (90 loc) · 2.69 KB
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
97
98
99
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Gentoo CI - QA check results</title>
<link rel="stylesheet" type="text/css" href="/pkgcheck2html.css" />
</head>
<body>
<h1>QA check results</h1>
{% if errors or warnings or staging %}
<div class="nav">
<h2>issues</h2>
<ul>
{% for g, pkgs in errors %}
<li class="err heading">{{ g }}</li>
{% for pkg in pkgs %}
<li class="err"><a href="#{{ pkg|join('/') }}">{{ pkg|join('/') }}</a></li>
{% endfor %}
{% endfor %}
{% for g, pkgs in warnings %}
<li class="warn heading">{{ g }}</li>
{% for pkg in pkgs %}
<li class="warn"><a href="#{{ pkg|join('/') }}">{{ pkg|join('/') }}</a></li>
{% endfor %}
{% endfor %}
{% for g, pkgs in staging %}
<li class="staging heading">{{ g }}</li>
{% for pkg in pkgs %}
<li class="staging"><a href="#{{ pkg|join('/') }}">{{ pkg|join('/') }}</a></li>
{% endfor %}
{% endfor %}
</ul>
</div>
{% endif %}
<div class="content">
{% if revision %}
<p class="rev">
Report revision: {{ revision }};
<a href="../output.html">current report</a>
</p>
{% endif %}
<table>
<tr>
<th>Version</th>
<th>Keyword (<a rel='external' href='http://pkgcore.github.io/pkgcheck/man/pkgcheck.html#keywords'>doc</a>)</th>
<th>Message</th>
</tr>
{% for g, r in results %}
{% set h2_id = g[0] if g else "global" %}
<tr><th colspan="3" class="c" id="{{ h2_id }}">
{{ g[0] if g else "Global-scope results" }}
<a href="#{{ h2_id }}">¶</a>
</th></tr>
{% for g, r in r %}
{% if g[0] %}
{% set h3_id = g[0] + "/" + g[1] if g[1] else "_cat" %}
<tr><th colspan="3" class="p" id="{{ h3_id }}">
{{ g[1] if g[1] else "Category results" }}
<a href="#{{ h3_id }}">¶</a>
</th></tr>
{% if g[1] %}
{% set maint = maints[h3_id] %}
{% if maint %}
<tr><th colspan="3" class="m">
m: {{ maints[h3_id] | join(', ') | escape }}
</th></tr>
{% endif %}
{% endif %}
{% endif %}
{% for g, r in r %}
{% for rx in r %}
{% set class_str = "" %}
{% if rx.css_class %}
{% set class_str = ' class="' + rx.css_class[0] + '"' %}
{% endif %}
<tr{{ class_str }}>
<td>{{ g[2] if loop.index == 1 else "" }}</td>
<td>{{ rx.class }}</td>
<td>{{ rx.msg|escape }}</td>
</tr>
{% endfor %}
{% endfor %}
{% endfor %}
{% endfor %}
</table>
</div>
<address>Generated based on results from: {{ ts.strftime("%F %T UTC") }}</address>
</body>
</html>
<!-- vim:se ft=jinja : -->