From 5dc96eaae9966d08dafccdc676d4ad8fdc6484d4 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 20 Nov 2009 06:50:12 -0500 Subject: Polish up the sortable report: indication of sort column and sortability --- coverage/htmlfiles/index.html | 19 +++++++------- coverage/htmlfiles/style.css | 59 ++++++++++++++++++++++++++----------------- 2 files changed, 46 insertions(+), 32 deletions(-) (limited to 'coverage/htmlfiles') diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html index 162f862c..5c562de2 100644 --- a/coverage/htmlfiles/index.html +++ b/coverage/htmlfiles/index.html @@ -20,8 +20,9 @@
- - + {# The title='' attr doesn't work in Safari. #} + + @@ -29,13 +30,13 @@ {% endif %} - + {% for file in files %} - + @@ -43,13 +44,13 @@ {% endif %} - + {% endfor %} - + @@ -57,7 +58,7 @@ {% endif %} - +
Module
Module statements run excludedbranches br execcoveragecoverage
{{file.cu.name}}{{file.cu.name}} {{file.nums.n_statements}} {{file.nums.n_executed}} {{file.nums.n_excluded}}{{file.nums.n_branches}} {{file.nums.n_executed_branches}}{{file.nums.pc_covered|format_pct}}%{{file.nums.pc_covered|format_pct}}%
TotalTotal {{totals.n_statements}} {{totals.n_executed}} {{totals.n_excluded}}{{totals.n_branches}} {{totals.n_executed_branches}}{{totals.pc_covered|format_pct}}%{{totals.pc_covered|format_pct}}%
@@ -75,11 +76,11 @@ jQuery(function() { jQuery("table.index").tablesorter({ headers: { - 0: { sorter:'test' }, + 0: { sorter:'text' }, 1: { sorter:'digit' }, 2: { sorter:'digit' }, 3: { sorter:'digit' }, - 4: { sorter:'digit' }, + 4: { sorter:'percent' }, } }); }); diff --git a/coverage/htmlfiles/style.css b/coverage/htmlfiles/style.css index 65a27905..dd6c991a 100644 --- a/coverage/htmlfiles/style.css +++ b/coverage/htmlfiles/style.css @@ -2,14 +2,14 @@ /* Page-wide styles */ html, body, h1, h2, h3, p, td, th { margin: 0; - padding: 0; - border: 0; - outline: 0; - font-weight: inherit; - font-style: inherit; - font-size: 100%; - font-family: inherit; - vertical-align: baseline; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; } /* Set baseline grid to 16 pt. */ @@ -134,16 +134,16 @@ td.text { } .text span.annotate { - font-family: georgia; - font-style: italic; - color: #666; - float: right; - padding-right: .5em; - } + font-family: georgia; + font-style: italic; + color: #666; + float: right; + padding-right: .5em; + } .text p.hide span.annotate { - display: none; - } - + display: none; + } + /* Syntax coloring */ .text .com { color: green; @@ -161,14 +161,28 @@ td.text { /* index styles */ #index td, #index th { text-align: right; - width: 6em; - padding: .25em 0; + width: 5em; + padding: .25em .5em; border-bottom: 1px solid #eee; } #index th { font-style: italic; color: #333; border-bottom: 1px solid #ccc; + cursor: pointer; + } +#index th:hover { + background: #eee; + border-bottom: 1px solid #999; + } +#index td.left, #index th.left { + padding-left: 0; + } +#index td.right, #index th.right { + padding-right: 0; + } +#index th.headerSortDown, #index th.headerSortUp { + border-bottom: 1px solid #000; } #index td.name, #index th.name { text-align: left; @@ -183,13 +197,12 @@ td.text { color: #000; } #index tr.total { - font-weight: bold; } #index tr.total td { - padding: .25em 0; + font-weight: bold; border-top: 1px solid #ccc; border-bottom: none; } #index tr.file:hover { - background: #eeeeee; - } + background: #eeeeee; + } -- cgit v1.2.1