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
|
<!DOCTYPE html>
<html lang="en">
{{template "head"}}
<body>
{{template "header" .}}
<div class="container mb-5">
<h1 class="mb-4">
Statistics<br/>
<small class="text-muted" style="font-size: 70%;">Stay tuned, this is just a first placeholder. More is coming soon.</small>
</h1>
<style>
#bar > svg{
display:block;
}
#bar{
width:100%;
height:400px;
margin:0;
padding: 0;
}
</style>
<div class="col-12">
<div id="bar"></div>
</div>
</div>
{{template "footer" .}}
<script>
window.CHART_DATA = [
{
type: 'GLSAs',
stage: 'request',
count: {{.Data.Requests}},
},
{
type: 'GLSAs',
stage: 'draft',
count: {{.Data.Drafts}},
},
{
type: 'GLSAs',
stage: 'glsa',
count: {{.Data.Glsas}},
},
{
type: 'CVEs',
stage: 'New',
count: {{.Data.New}},
},
{
type: 'CVEs',
stage: 'Assigned',
count: {{.Data.Assigned}},
},
{
type: 'CVEs',
stage: 'Later',
count: {{.Data.Later}},
},
{
type: 'CVEs',
stage: 'NFU',
count: {{.Data.NFU}},
},
{
type: 'CVEs',
stage: 'Invalid',
count: {{.Data.Invalid}},
}
];
</script>
<script src="/assets/statistics.js"></script>
</body>
</html>
|