summaryrefslogtreecommitdiff
path: root/templates/browse-statistics.html
blob: fddcaa65756d56a69df92bfb60384e149699b7ab (plain)
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
{% 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 %}