doab-check/doab_check/templates/provider.html

44 lines
902 B
HTML

<html>
<head>
<title>DOAB Hosts</title>
</head>
<body>
<h2>
Link Checking for
{{provider.provider}} ({{provider.link_count}} links)
</h2>
<h3>Summary</h3>
<table>
<tr>
<th>HTTP Code</th>
<th>number</th>
</tr>
{% for code in codes %}
<tr {% if code.recent_check__return_code != 200 %} style="color:red"{% endif %}>
<td> {{ code.recent_check__return_code }} </td>
<td> {{ code.count }} </td>
</tr>
{% empty %}
<tr><td colspan=2>None of the active links for {{ provider.provider }} have been checked.</td>
{% endfor %}
</table>
<h3>Checked links</h3>
<ul>
{% for link in links %}
<li>
<a href="{{link.url}}">{{link.url}}</a>
<table>
{% for check in link.recent_checks %}
<tr>
<td>{{ check.created }}</td>
<td {% if check.return_code != 200 %} style="color:red"{% endif %}>{{ check.return_code }}</td>
<td>{{check.content_type}}</td>
</tr>
{% endfor %}
</table>
</li>
{% endfor %}
</ul>
</body>
</html>