summaryrefslogtreecommitdiff
path: root/coverage/htmlfiles
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-12-06 19:34:40 -0500
committerNed Batchelder <ned@nedbatchelder.com>2009-12-06 19:34:40 -0500
commita6212c713f44ee9e7c13cac1ce725c99b28cf938 (patch)
tree60fbeb4f30fb9561e301aa381f1a5d6e8cd2b3a3 /coverage/htmlfiles
parent0a44d5bcf096d4c820c6870d5bf8899b928df15d (diff)
downloadpython-coveragepy-git-a6212c713f44ee9e7c13cac1ce725c99b28cf938.tar.gz
Add a numbered id to the line parts, for future use. Put the percentage in the title of file reports.
Diffstat (limited to 'coverage/htmlfiles')
-rw-r--r--coverage/htmlfiles/pyfile.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html
index 62518ba0..0e95db10 100644
--- a/coverage/htmlfiles/pyfile.html
+++ b/coverage/htmlfiles/pyfile.html
@@ -2,7 +2,7 @@
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
-<title>Coverage for {{cu.name|escape}}</title>
+<title>Coverage for {{cu.name|escape}}: {{nums.pc_covered|format_pct}}%</title>
<link rel='stylesheet' href='style.css' type='text/css'>
<script type='text/javascript' src='jquery-1.3.2.min.js'></script>
<script type='text/javascript'>
@@ -43,12 +43,12 @@ function toggle_lines(btn, cls) {
<tr>
<td class='linenos' valign='top'>
{% for line in lines %}
- <p class='{{line.class}}'>{{line.number}}</p>
+ <p id='n{{line.number}}' class='{{line.class}}'>{{line.number}}</p>
{% endfor %}
</td>
<td class='text' valign='top'>
{% for line in lines %}
- <p class='{{line.class}}'>{% if line.annotate %}<span class='annotate' title='{{line.annotate_title}}'>{{line.annotate}}</span>{% endif %}{{line.html}}<span class='strut'>&nbsp;</span></p>
+ <p id='t{{line.number}}' class='{{line.class}}'>{% if line.annotate %}<span class='annotate' title='{{line.annotate_title}}'>{{line.annotate}}</span>{% endif %}{{line.html}}<span class='strut'>&nbsp;</span></p>
{% endfor %}
</td>
</tr>