1{# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 #}
2{# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt #}
3
4<!DOCTYPE html>
5<html>
6<head>
7    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
8    <title>{{ title|escape }}</title>
9    <link rel="stylesheet" href="style.css" type="text/css">
10    {% if extra_css %}
11        <link rel="stylesheet" href="{{ extra_css }}" type="text/css">
12    {% endif %}
13    <script type="text/javascript" src="jquery.min.js"></script>
14    <script type="text/javascript" src="jquery.debounce.min.js"></script>
15    <script type="text/javascript" src="jquery.tablesorter.min.js"></script>
16    <script type="text/javascript" src="jquery.hotkeys.js"></script>
17    <script type="text/javascript" src="coverage_html.js"></script>
18    <script type="text/javascript">
19        jQuery(document).ready(coverage.index_ready);
20    </script>
21</head>
22<body class="indexfile">
23
24<div id="header">
25    <div class="content">
26        <h1>{{ title|escape }}:
27            <span class="pc_cov">{{totals.pc_covered_str}}%</span>
28        </h1>
29
30        <img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" />
31
32        <form id="filter_container">
33            <input id="filter" type="text" value="" placeholder="filter..." />
34        </form>
35    </div>
36</div>
37
38<div class="help_panel">
39    <img id="panel_icon" src="keybd_open.png" alt="Hide keyboard shortcuts" />
40    <p class="legend">Hot-keys on this page</p>
41    <div>
42    <p class="keyhelp">
43        <span class="key">n</span>
44        <span class="key">s</span>
45        <span class="key">m</span>
46        <span class="key">x</span>
47        {% if has_arcs %}
48        <span class="key">b</span>
49        <span class="key">p</span>
50        {% endif %}
51        <span class="key">c</span> &nbsp; change column sorting
52    </p>
53    </div>
54</div>
55
56<div id="index">
57    <table class="index">
58        <thead>
59            {# The title="" attr doesn"t work in Safari. #}
60            <tr class="tablehead" title="Click to sort">
61                <th class="name left headerSortDown shortkey_n">Module</th>
62                <th class="shortkey_s">statements</th>
63                <th class="shortkey_m">missing</th>
64                <th class="shortkey_x">excluded</th>
65                {% if has_arcs %}
66                <th class="shortkey_b">branches</th>
67                <th class="shortkey_p">partial</th>
68                {% endif %}
69                <th class="right shortkey_c">coverage</th>
70            </tr>
71        </thead>
72        {# HTML syntax requires thead, tfoot, tbody #}
73        <tfoot>
74            <tr class="total">
75                <td class="name left">Total</td>
76                <td>{{totals.n_statements}}</td>
77                <td>{{totals.n_missing}}</td>
78                <td>{{totals.n_excluded}}</td>
79                {% if has_arcs %}
80                <td>{{totals.n_branches}}</td>
81                <td>{{totals.n_partial_branches}}</td>
82                {% endif %}
83                <td class="right" data-ratio="{{totals.ratio_covered|pair}}">{{totals.pc_covered_str}}%</td>
84            </tr>
85        </tfoot>
86        <tbody>
87            {% for file in files %}
88            <tr class="file">
89                <td class="name left"><a href="{{file.html_filename}}">{{file.relative_filename}}</a></td>
90                <td>{{file.nums.n_statements}}</td>
91                <td>{{file.nums.n_missing}}</td>
92                <td>{{file.nums.n_excluded}}</td>
93                {% if has_arcs %}
94                <td>{{file.nums.n_branches}}</td>
95                <td>{{file.nums.n_partial_branches}}</td>
96                {% endif %}
97                <td class="right" data-ratio="{{file.nums.ratio_covered|pair}}">{{file.nums.pc_covered_str}}%</td>
98            </tr>
99            {% endfor %}
100        </tbody>
101    </table>
102
103    <p id="no_rows">
104        No items found using the specified filter.
105    </p>
106</div>
107
108<div id="footer">
109    <div class="content">
110        <p>
111            <a class="nav" href="{{__url__}}">coverage.py v{{__version__}}</a>,
112            created at {{ time_stamp }}
113        </p>
114    </div>
115</div>
116
117</body>
118</html>
119