Source

django-coverage / django_coverage / templates / coverage_module.html

{% extends "base.html" %}
{% block title %}Coverage details for {{ module_name }}{% endblock %}
{% block styles %}{{ super() }}
    .summary {
      border-color: gray;
      border-radius: 10px;
      border: 1px solid;
      padding: 0.5em;
      text-align: center;
    }
    .warning.summary {
      border-color: #fff200;
      background-color: #fdfbd8;
    }
    .critical.summary,
    .error.summary {
      border-color: red;
      background-color: #fde4e6;
    }
    .normal.summary {
      background-color: #c5fad3;
      border-color: green;
    }
    .summary dt,
    .summary dd {
      padding: 0.3em;
      display: inline-block;
    }
    .summary dt {
      font-weight: bold;
    }
    ul {
      padding-left: 13px;
      list-style-position: inside;
      margin: 0 50px;
    }
    ol {
      padding: 0 0 0 50px;
      font-family: monospace;
      list-style-position: outside;
      border: solid 1px gray;
      background-color: #c7d8fe;
    }
    ol li {
      line-height: 18px;
      font-size: small;
      border-left: 2px solid gray;
      padding-left: 5px;
      background-color: white;
    }
    code {
      padding:  0 .001em 0 0; /* Firefox doesn't render empty li's properly */
      font-size: medium;
      white-space: pre;
      color: gray;
    }
    .missed {
      border-color: red;
    }
    .missed code {
      color: red;
    }
    .executed {
      border-color: #3d9900;
    }
    .executed code {
      color: #3d9900;
    }
    .excluded {
      border-color: #6090f0;
    }
    .excluded code {
      color: #6090f0;
    }
{% endblock %}
{% block content %}
<div class="nav top">
  <a href="../index.html">Coverage modules list</a>
  <a href="../../index.html">Test results</a>
</div>
<h1>Coverage details for {{ module.name }}</h1>
<dl class="summary {{ module.css }}">
  <dt>Total lines:</dt><dd>{{ module.total_lines }}</dd>
  <dt>Covered lines:</dt><dd>{{ module.executed_lines }}</dd>
  <dt>Uncovered</dt><dd>{{ module.excluded_lines }}</dd>
  <dt>% coverage</dt><dd>{{ module.coverage_percent }}</dd>
</dl>
<ol class="sources">
  {% for line in module.source_lines %}<li class="{{ line.status }}"><code>{{ line.line }}</code></li>{% endfor %}
</ol>
<div class="nav bottom">
  <a href="../index.html">Coverage modules list</a>
  <a href="../../index.html">Test results</a>
</div>
{% endblock %}