Skip to content

Commit

Permalink
Merge pull request #37 from mathiasbynens/master
Browse files Browse the repository at this point in the history
Clean up HTML template
  • Loading branch information
gotwarlost committed Mar 31, 2013
2 parents a24f339 + 10a5b22 commit 6e5be42
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
6 changes: 3 additions & 3 deletions lib/report/templates/foot.txt
@@ -1,9 +1,8 @@


</div> </div>
<div class='footer'> <div class="footer">
<div class='meta'>Generated by <a href='http://istanbul-js.org' target='_blank'>istanbul</a> at {{datetime}}</div> <div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at {{datetime}}</div>
</div> </div>
</body>
{{#if prettify}} {{#if prettify}}
<script src="{{prettify.js}}"></script> <script src="{{prettify.js}}"></script>
{{/if}} {{/if}}
Expand Down Expand Up @@ -99,4 +98,5 @@
}); });
}); });
</script> </script>
</body>
</html> </html>
34 changes: 18 additions & 16 deletions lib/report/templates/head.txt
@@ -1,18 +1,17 @@
<!doctype html> <!doctype html>
<html> <html lang="en">
<head> <head>
<title>Code coverage report for {{entity}}</title> <title>Code coverage report for {{entity}}</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="utf-8">
<meta http-equiv="content-language" content="en-gb"> {{#if prettify}}
{{#if prettify}} <link rel="stylesheet" href="{{prettify.css}}">
<link rel='stylesheet' href='{{prettify.css}}'> {{/if}}
{{/if}} <style>
<style type='text/css'>
body, html { body, html {
margin:0; padding: 0; margin:0; padding: 0;
} }
body { body {
font-family: "Helvetic Neue", Helvetica,Arial; font-family: Helvetica Neue, Helvetica,Arial;
font-size: 10pt; font-size: 10pt;
} }
div.header, div.footer { div.header, div.footer {
Expand Down Expand Up @@ -46,11 +45,14 @@
font-size: 10pt; font-size: 10pt;
} }
pre { pre {
font-family: consolas, menlo, monaco, monospace; font-family: Consolas, Menlo, Monaco, monospace;
margin: 0; margin: 0;
padding: 0; padding: 0;
line-height: 14px; line-height: 14px;
font-size: 14px; font-size: 14px;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
} }


div.path { font-size: 110%; } div.path { font-size: 110%; }
Expand Down Expand Up @@ -177,22 +179,22 @@
</style> </style>
</head> </head>
<body> <body>
<div class='header {{reportClass}}'> <div class="header {{reportClass}}">
<h1>Code coverage report for <span class='entity'>{{entity}}</span></h1> <h1>Code coverage report for <span class="entity">{{entity}}</span></h1>
<h2> <h2>
{{#with metrics.statements}} {{#with metrics.statements}}
Statements: <span class='metric'>{{pct}}% <small>({{covered}} / {{total}})</small></span> &nbsp;&nbsp;&nbsp;&nbsp; Statements: <span class="metric">{{pct}}% <small>({{covered}} / {{total}})</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
{{/with}} {{/with}}
{{#with metrics.branches}} {{#with metrics.branches}}
Branches: <span class='metric'>{{pct}}% <small>({{covered}} / {{total}})</small></span> &nbsp;&nbsp;&nbsp;&nbsp; Branches: <span class="metric">{{pct}}% <small>({{covered}} / {{total}})</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
{{/with}} {{/with}}
{{#with metrics.functions}} {{#with metrics.functions}}
Functions: <span class='metric'>{{pct}}% <small>({{covered}} / {{total}})</small></span> &nbsp;&nbsp;&nbsp;&nbsp; Functions: <span class="metric">{{pct}}% <small>({{covered}} / {{total}})</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
{{/with}} {{/with}}
{{#with metrics.lines}} {{#with metrics.lines}}
Lines: <span class='metric'>{{pct}}% <small>({{covered}} / {{total}})</small></span> &nbsp;&nbsp;&nbsp;&nbsp; Lines: <span class="metric">{{pct}}% <small>({{covered}} / {{total}})</small></span> &nbsp;&nbsp;&nbsp;&nbsp;
{{/with}} {{/with}}
</h2> </h2>
{{{pathHtml}}} {{{pathHtml}}}
</div> </div>
<div class='body'> <div class="body">

0 comments on commit 6e5be42

Please sign in to comment.