diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-01-22 20:06:16 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-01-22 20:06:16 +0100 |
commit | 3452f8a6e8bc54d0ee68256ecc04b5b1edd699d6 (patch) | |
tree | e2773b953f8464ef82fda998b74715096e244ad8 /templates/browse-statistics.html | |
parent | c1e0c1353c5efaccf3ed4628f22589ab6a133100 (diff) |
import templates from autopkgtest-cloud
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'templates/browse-statistics.html')
-rw-r--r-- | templates/browse-statistics.html | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/templates/browse-statistics.html b/templates/browse-statistics.html new file mode 100644 index 0000000..fddcaa6 --- /dev/null +++ b/templates/browse-statistics.html @@ -0,0 +1,55 @@ +{% extends "browse-layout.html" %} +{% block content %} + <h1 class="page-header">Statistics</h1> + + {% for r in release_arches %} + <h3 class="page-header">{{ r.capitalize() }}</h2> + + <table class="table" style="width: auto"> + <tr> + <th>architecture</th> + {% for arch in release_arches[r]|sort %}<th>{{arch}}</th> {% endfor %} + </tr> + + <tr> + <th>#packages with tests</th> + {% for arch in release_arches[r]|sort %} + <td>{{data[r][arch]['numpkgs']}}</td> + {% endfor %} + </tr> + + <tr> + <th>#packages with passing tests </th> + {% for arch in release_arches[r]|sort %} + <td>{% if data[r][arch]['numpkgspass'] %}{{data[r][arch]['numpkgspass']}}{% endif %}</td> + {% endfor %} + </tr> + + <tr> + <th>pass rate</th> + {% for arch in release_arches[r]|sort %} + <td>{% if data[r][arch]['numpkgs'] %} + {{'%.1f' % (data[r][arch]['numpkgspass'] * 100 / data[r][arch]['numpkgs'])}}% + {% endif %}</td> + {% endfor %} + </tr> + + + <tr> + <th>#passed test runs</th> + {% for arch in release_arches[r]|sort %} + <td>{{data[r][arch]['passruns']}}</td> + {% endfor %} + </tr> + + <tr> + <th>#failed test runs</th> + {% for arch in release_arches[r]|sort %} + <td>{{data[r][arch]['failruns']}}</td> + {% endfor %} + </tr> + </table> + + {% endfor %} + +{% endblock %} |