Skip to content

Commit

Permalink
Some minor HTML template change.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennytm committed Sep 19, 2017
1 parent 972c0e0 commit 873168a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cargo-cov/res/templates/html/static/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ a:hover {
text-align: left;
width: inherit;
min-width: 20em;
max-width: 58em;
overflow-wrap: break-word;
}

#source {
Expand Down
2 changes: 2 additions & 0 deletions cargo-cov/res/templates/html/static/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ function highlight() {
lineElement.className += ' highlighted';
if (lineElement.scrollIntoViewIfNeeded) {
lineElement.scrollIntoViewIfNeeded(true);
} else if (lineElement.scrollIntoView) {
lineElement.scrollIntoView(true);
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion cargo-cov/res/templates/html/tera/file.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h2>functions</h2>
{% set fn_cls = "covered" %}
{% endif %}
<tr class="ln-{{fn_cls}}">
<td><a href="#{{ f.line }}" title="{{ f.name | escape }}">{{ f.name | demangle | escape }}</a></td>
<td><a href="#{{ f.line }}" title="{{ f.name | escape }}">{{ f.name | demangle | escape | replace(from="::", to="::​") | replace(from=",", to=",​") }}</a></td>
<td>{{ f.summary.entry_count }}</td>
{{ macros::coverage_percent_cell(value=f.summary.exit_count, total=f.summary.entry_count, fair=0, good=0) }}
{{ macros::coverage_percent_cell(value=f.summary.blocks_executed, total=f.summary.blocks_count, fair=75, good=90) }}
Expand Down

0 comments on commit 873168a

Please sign in to comment.