diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-04-18 02:38:35 +0200 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-04-18 02:50:54 +0200 |
commit | 35a41e63ebd5f6cf9d17419c150eb53a005d2e87 (patch) | |
tree | e0bcc21bbb1e7e200857cfbd52acb82b008a3a6d /web/templates/statistics/statistics.tmpl | |
parent | Display version and last update in the footer (diff) | |
download | glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.tar.gz glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.tar.bz2 glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.zip |
Add the initial version of the rewritten glsamaker
The glsamaker has been completly rewritten in go. It is
using postgres instead of mysql now. The look and feel is
based on tyrian.
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web/templates/statistics/statistics.tmpl')
-rw-r--r-- | web/templates/statistics/statistics.tmpl | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/web/templates/statistics/statistics.tmpl b/web/templates/statistics/statistics.tmpl new file mode 100644 index 0000000..134e7e0 --- /dev/null +++ b/web/templates/statistics/statistics.tmpl @@ -0,0 +1,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> |