diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-07-16 17:49:39 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-07-16 17:49:39 +0300 |
commit | 052b22a4bc5a07814ecc93a9b40c62e6be55a7e9 (patch) | |
tree | 08b4a9a148ecb2ae6f939fcc8da5a029976f0497 | |
parent | c8bdd886779fdd2bff087dc8ec4f72004e55d2d9 (diff) | |
download | obnam-benchmarks-052b22a4bc5a07814ecc93a9b40c62e6be55a7e9.tar.gz |
Apply CSS to summary table column width
-rw-r--r-- | benchmark.css | 14 | ||||
-rwxr-xr-x | obbench | 11 |
2 files changed, 20 insertions, 5 deletions
diff --git a/benchmark.css b/benchmark.css index 0f4468f..6cd34d5 100644 --- a/benchmark.css +++ b/benchmark.css @@ -6,6 +6,18 @@ th { } th, td { border-right: solid 1px; - text-align: right; font-family: monospace; } +th.duration, td.duration { + text-align: right; +} +td.date { + width: 25em; +} +td.commitid { + width: 7em; +} +td.commitmsg { + width: 30em; + text-align: left; +} @@ -265,11 +265,13 @@ class ObnamBenchmarker(cliapp.Application): for run in runs: f.write('<tr>\n') - f.write('<td>{date}</td>\n'.format(date=self.q(run['date']))) f.write( - '<td>{commit}</td>\n'.format( + '<td class="date">{date}</td>\n'.format( + date=self.q(run['date']))) + f.write( + '<td class="commitid">{commit}</td>\n'.format( commit=self.q(run['commit_id']))) - f.write('<td>{msg}</td>\n'.format( + f.write('<td class="commitmsg">{msg}</td>\n'.format( msg=self.q(run['commit_msg']))) for name in benchmark_names: @@ -278,7 +280,8 @@ class ObnamBenchmarker(cliapp.Application): name=self.q(name)) duration = '%.1f' % run['durations'][name] f.write( - '<td><a href="{link}">{duration}</a></td>\n'.format( + '<td class="duration">' + '<a href="{link}">{duration}</a></td>\n'.format( link=link, duration=self.q(duration))) f.write('</tr>\n') |