index.html 4.1 KB

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