2017-10-26 04:32:59 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
|
|
<title>Bridgy Fed: Logs</title>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta name="mobile-web-app-capable" content="yes"/>
|
|
|
|
<link rel="stylesheet" href="/static/bootstrap.min.css" />
|
|
|
|
<link rel="stylesheet" href="/static/style.css" type="text/css" />
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<main class="tp-main lead container">
|
|
|
|
<h1>Bridgy Fed: Logs</h1>
|
|
|
|
<h3>Recent requests we've attempted to federate.</h3>
|
|
|
|
|
|
|
|
<table>
|
2017-10-26 14:13:28 +00:00
|
|
|
<tr><th>Source</th> <th>Target</th> <th>Protocol</th> <th>Status</th> <th>Time (click for log)</th></tr>
|
2017-10-26 04:32:59 +00:00
|
|
|
{% for r in responses %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ r.source|safe }}</td>
|
|
|
|
<td>{{ r.target|safe }}</td>
|
|
|
|
<td>{{ r.protocol }}</td>
|
|
|
|
<td>{{ r.status }}</td>
|
2017-10-26 14:13:28 +00:00
|
|
|
<td>
|
|
|
|
{# TODO: support inbound too #}
|
|
|
|
{% if r.direction == 'out' and r.start_time %}
|
|
|
|
<a href="/log?{{ {'key': r.key.id(), 'start_time': r.start_time}|urlencode }}">
|
|
|
|
{% endif %}
|
|
|
|
{{ r.updated.replace(microsecond=0) }}
|
|
|
|
{% if r.direction == 'out' %}</a>{% endif %}
|
|
|
|
</td>
|
2017-10-26 04:32:59 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</main>
|
|
|
|
</body>
|
|
|
|
</html>
|