diff options
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 %} |