diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-16 20:27:10 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-10-17 11:05:45 -0400 |
commit | b2ca5af1e1811d2ac00a552df4703e8f318582b8 (patch) | |
tree | 3ab5141576774065b67090fe7039ae91eab39c06 /coverage/htmlfiles/pyfile.html | |
parent | e0775064500aad4a8b51e50db80587be62607e3d (diff) | |
download | python-coveragepy-git-b2ca5af1e1811d2ac00a552df4703e8f318582b8.tar.gz |
feat(html): sticky header on pyfile
Diffstat (limited to 'coverage/htmlfiles/pyfile.html')
-rw-r--r-- | coverage/htmlfiles/pyfile.html | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index 33cab95a..55194612 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -24,6 +24,20 @@ </head> <body class="pyfile"> +<aside id="sticky_header"> + <div class="content stats"> + <p><b>{{relative_filename|escape}}</b> : {{nums.pc_covered_str}}% + <button type="button" class="{{category.run}} button_toggle_run" title="Toggle lines run">{{nums.n_executed}}</button> + <button type="button" class="{{category.mis}} button_toggle_mis" title="Toggle lines missing">{{nums.n_missing}}</button> + <button type="button" class="{{category.exc}} button_toggle_exc" title="Toggle lines excluded">{{nums.n_excluded}}</button> + {% if has_arcs %} + <button type="button" class="{{category.par}} button_toggle_par" title="Toggle lines partially run">{{nums.n_partial_branches}}</button> + {% endif %} + <img id="keyboard_icon" src="keybd_closed.png" alt="Show keyboard shortcuts" /> + </p> + </div> +</aside> + <header> <div class="content"> <h1>Coverage for <b>{{relative_filename|escape}}</b> : @@ -37,7 +51,6 @@ <button type="button" class="{{category.run}} shortkey_r button_toggle_run" title="Toggle lines run">{{nums.n_executed}} run</button> <button type="button" class="{{category.mis}} shortkey_m button_toggle_mis" title="Toggle lines missing">{{nums.n_missing}} missing</button> <button type="button" class="{{category.exc}} shortkey_x button_toggle_exc" title="Toggle lines excluded">{{nums.n_excluded}} excluded</button> - {% if has_arcs %} <button type="button" class="{{category.par}} shortkey_p button_toggle_par" title="Toggle lines partially run">{{nums.n_partial_branches}} partial</button> {% endif %} |