Source

django-coverage / django_coverage / templates / coverage.html

{% extends "base.html" %}
{% block title %}Coverage summary{% endblock %}
{% block styles %}{{ super() }}
    .coverage .links { padding: 0; }
    table {
      width: 95%;
      border: 1px solid gray;
      background-color: #dbfbe2;
    }
    td, th {
     padding: 3px 10px;
    }
    tr .evan {
      background-color: #ceedd5;
    }
    tr.evan {
      background-color: #cefbd8;
    }
    tr.evan .evan {
      background: #c2f3cd;
    }
    .warning {
      background-color: #f5fcce;
    }
    .warning .evan {
      background-color: #e9f1ba;
    }
    .warning.evan {
      background-color: #f5fec2;
    }
    .warning.evan .evan {
      background-color: #e3f09a;
    }
    .critical {
      background-color: #ffd9de;
    }
    .critical .evan {
      background-color: #f5cbd0;
    }
    .critical.evan {
      background-color: #fdbbc4;
    }
    .critical.evan .evan {
      background-color: #fda0ac;
    }
    th {
      vertical-align: bottom;
      color: black;
      background: #8dffa5;
    }
    a, a.visited {
      color: black;
      display: block;
      width: 100%;
    }
    a:hover {
      color: red;
    }
    .total-lines,
    .excluded-lines,
    .coverage-percent,
    .executed-lines {
      width: 60px;
      text-align: center;
    }
    .title th {
      border-bottom: 4px double gray;
    }
    .summary th {
      border-top: 4px double gray;
      background-color: #dbfbe2;
    }
    .title .module-name {
      text-align: left;
    }
    .summary th.module-name {
      text-align: right;
      background-color: white;
    }
{% endblock %}
{% block content %}
<div class="nav top">
  <a href="../index.html">Test results</a>
</div>
<h1>Coverage summary</h1>
<table class="modules_list" cellspacing="0">
<tr class="title">
  <th class="module-name">Module</th>
  <th class="total-lines">Total lines</th>
  <th class="executed-lines">Executed lines</th>
  <th class="excluded-lines">Excluded lines</th>
  <th class="coverage-percent">% coverage</th>
</tr>
{% for m in modules %}
  <tr class="{{ m.css }}{% if loop.index is divisibleby 2 %} evan{% endif %}">
    <td class="module-name"><a href="{{ m.url }}">{{ m.name }}</a></td>
    <td class="total-lines evan">{{ m.total_lines }}</td>
    <td class="executed-lines">{{ m.executed_lines }}</td>
    <td class="excluded-lines evan">{{ m.excluded_lines }}</td>
    <td class="coverage-percent">{{ m.coverage_percent }}</td>
  </tr>
{% endfor %}
<tr class="summary {{ summary.css }}">
  <th class="module-name">Summary:</th>
  <th class="total-lines">{{ summary.total_lines }}</th>
  <th class="executed-lines">{{ summary.executed_lines }}</th>
  <th class="excluded-lines">{{ summary.excluded_lines }}</th>
  <th class="coverage-percent">{{ summary.coverage_percent }}</th>
</tr>
</table>
<div class="nav top">
  <a href="../index.html">Test results</a>
</div>
{% endblock %}