-
Notifications
You must be signed in to change notification settings - Fork 51
/
admin_sources.html
48 lines (43 loc) 路 1.07 KB
/
admin_sources.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
<title>Bridgy: Poll error sources</title>
<style type="text/css">
table { border-spacing: .5em; }
th, td { border: none; }
li { list-style: none; }
</style>
</head>
<h2>Poll error sources</h2>
<table>
<tr>
<th>Source</th>
<th>Last attempt</th>
<th>Last success</th>
<th>Last webmention</th>
</tr>
{% for s in sources %}
<tr>
<td><a target="_blank" href="{{ s.bridgy_path() }}">{{ s.label() }}</a></td>
<td>{{ logs.maybe_link(s.last_poll_attempt, s.key)|safe }}</td>
<td>
{% if s.last_polled and s.last_polled > EPOCH %}
{{ logs.maybe_link(s.last_polled, s.key)|safe }}
{% else %}
never
{% endif %}
</td>
<td>
{% if s.last_webmention_sent and s.last_webmention_sent > EPOCH %}
<time datetime="{{ s.last_webmention_sent.isoformat() }}"
title="{{ s.last_webmention_sent.isoformat() }}">
{{ naturaltime(s.last_webmention_sent) }}</time>
{% else %}
never
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</body>
</html>