~allanlesage/qa-coverage-dashboard/logging-only

« back to all changes in this revision

Viewing changes to gaps/templates/project_list.html

Merge chris.gagnon's jenkins_coverage_pull_fix.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    $(document).ready(function() {
9
9
      $(".data-table").dataTable({
10
10
        "bPaginate": false,
11
 
        "aaSorting": [[2, 'desc']]
 
11
        "aaSorting": [[3, 'desc'], [0, 'asc']],
 
12
        "aoColumns": [
 
13
          null,
 
14
          null,
 
15
          {"aDataSort": [3]},
 
16
          {"bVisible": false},
 
17
          {"aDataSort": [5]},
 
18
          {"bVisible": false},
 
19
        ]
12
20
      });
13
21
    });
14
22
  //]]>
55
63
        <th>Name</th>
56
64
        <th>Last Build</th>
57
65
        <th>Line Coverage</th>
 
66
        <th>Line Coverage Sorting Criterion</th>
58
67
        <th>Branch Coverage</th>
 
68
        <th>Branch Coverage Sorting Criterion</th>
59
69
      </tr>
60
70
    </thead>
61
71
    <tbody>
67
77
        <td>
68
78
          {{ project.last_build.ran_at }}
69
79
        </td>
70
 
        <td>
 
80
        <td class='num'>
 
81
          {% if project.last_coverage_data.line_coverage == None %}
 
82
            N/A
 
83
          {% else %}
 
84
            {{ project.last_coverage_data.line_coverage|percentage }}%
 
85
          {% endif %}
 
86
        </td>
 
87
        <td class='num'>
71
88
          {{ project.last_coverage_data.line_coverage|percentage }}
72
89
        </td>
73
 
        <td>
 
90
        <td class='num'>
 
91
          {% if project.last_coverage_data.line_coverage == None %}
 
92
            N/A
 
93
          {% else %}
 
94
            {{ project.last_coverage_data.branch_coverage|percentage }}%
 
95
          {% endif %}
 
96
        </td>
 
97
        <td class='num'>
74
98
          {{ project.last_coverage_data.branch_coverage|percentage }}
75
99
        </td>
76
100
      </tr>